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

creation of a subtree in a transaction #4

@d1g1t4l

Description

@d1g1t4l

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions