Delete a znode atomically if it does not any more children.
1. Get stats 2. if (stats->num_children == 0) delete(if the version is same && cversion is same) Does version of a znode also reflects changes to its children? From documentation: version The number of changes to the data of this znode. cversion The number of changes to the children of this znode. The problem is, delete api accept version but does not accept cversion.
If child nodes were created after your check, Delete fails with KeeperException.NotEmpty.
On Tue, Jul 1, 2014 at 9:25 AM, Mudit Verma <[EMAIL PROTECTED]> wrote:
NEW: Monitor These Apps!
Apache Lucene, Apache Solr and all other Apache Software Foundation projects and their respective logos are trademarks of the Apache Software Foundation.
Elasticsearch, Kibana, Logstash, and Beats are trademarks of Elasticsearch BV, registered in the U.S. and in other countries. This site and Sematext Group is in no way affiliated with Elasticsearch BV.
Service operated by Sematext