Skip to content
This repository was archived by the owner on Jul 21, 2021. It is now read-only.

GetChildren supported in Multi() operation? #99

Open
youngkin opened this issue Dec 7, 2015 · 0 comments
Open

GetChildren supported in Multi() operation? #99

youngkin opened this issue Dec 7, 2015 · 0 comments

Comments

@youngkin
Copy link

youngkin commented Dec 7, 2015

I need to get a node's children as part of a multi request. I've successfully used multi for DeleteRequest, but in looking through the code 2 things stick out:

  1. While there is a getChildrenRequest, the struct isn't exported as is DeleteRequest. So I can't create a getChildrenRequest.
  2. The zk.Multi() function checks for operation type and returns an error if the operation isn't one of DeleteRequest, CreateRequest, SetDataRequest, or CheckVersionRequest. So even if getChildrenRequest was exported zk.Multi() wouldn't accept it.

So, I just wanted to confirm that I'm correct in the above and whether or not there are any plans to support GetChildren as part of a Multi operation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant