Skip to content
This repository has been archived by the owner on Aug 28, 2019. It is now read-only.

creation of a subtree in a transaction #4

Open
d1g1t4l opened this issue Feb 5, 2013 · 0 comments
Open

creation of a subtree in a transaction #4

d1g1t4l opened this issue Feb 5, 2013 · 0 comments

Comments

@d1g1t4l
Copy link

d1g1t4l commented Feb 5, 2013

I am trying to create the following structure:

/node1/node2

Node1 is a counter node so I don't know its name when I am preparing the transaction. Conceptually the transaction would be:

Begin
create /node1
create /node1/node2
End

The problem is that I can't hardcode /node1/node2 as I don't know node1's name. To solve this I would need a placeholder for the name of the node created in the previous operation, something like this:

Begin
create /node1
create ?/node2
End

I don't even know if this is supported by zookeeper. If it is then this would be a feature request, any clever ways to do it with minimum boilerplate would be appreciated.

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