You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Thomas Koch (JIRA)" <ji...@apache.org> on 2011/09/08 20:56:10 UTC

[jira] [Updated] (ZOOKEEPER-1175) DataNode references parent node for no reason

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-1175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Koch updated ZOOKEEPER-1175:
-----------------------------------

    Attachment: ZOOKEEPER-1175.patch

> DataNode references parent node for no reason
> ---------------------------------------------
>
>                 Key: ZOOKEEPER-1175
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1175
>             Project: ZooKeeper
>          Issue Type: Improvement
>            Reporter: Thomas Koch
>            Assignee: Thomas Koch
>            Priority: Minor
>         Attachments: ZOOKEEPER-1175.patch
>
>
> Having the parent referenced in a node makes the tree building harder then it needs to be. With the parent you need to get the parent before you can create the DataNode. Without the parent in the DataNode one can have a method tree.put(String path, new DataNode(...)).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira