Hi Hanson, I think that the code is OK in this situation, however the
comment is misleading.
In ZooKeeper version 3 watches are re-registered when the client
reconnects to a server. See this section of the docs:
http://hadoop.apache.org/zookeeper/docs/r3.0.1/zookeeperProgrammers.html#ch_zkWatc
If zoo_set() completes successfully with version != -1, can we assume that
version -> version + 1 for this znode? If not, is there a way for the user
to get the version of the successfully completed zoo_set() operation?
Thanks!
Avery