[
https://issues.apache.org/jira/browse/ZOOKEEPER-1312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161964#comment-13161964
]
Daniel Lord commented on ZOOKEEPER-1312:
----------------------------------------
Right. I meant that in response to the point about storing a list of strings
for children instead of storing a list of DataNodes for children. If you
changed the data structure of a DataNode to store child DataNodes instead of
child strings then you shouldn't require any different level of synchronization
than you do now. Correct?
I completely agree that if you want to have all of the child stats to be atomic
then you'd have to lock all of the children to disallow modification.
> Add a "getChildrenWithStat" operation
> -------------------------------------
>
> Key: ZOOKEEPER-1312
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1312
> Project: ZooKeeper
> Issue Type: New Feature
> Reporter: Daniel Lord
> Labels: newbie
>
> It would be extremely useful to be able to have a "getChildrenWithStat"
> method. This method would behave exactly the same as getChildren but in
> addition to returning the list of all child znode names it would also return
> a Stat for each child. I'm sure there are quite a few use cases for this but
> it could save a lot of extra reads for my application.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira