Github user cammckenzie commented on a diff in the pull request:
https://github.com/apache/curator/pull/236#discussion_r138482206
--- Diff:
curator-framework/src/main/java/org/apache/curator/framework/imps/CreateBuilderImpl.java
---
@@ -1212,7 +1212,21 @@ public String call() throws Exception
{
if ( setDataIfExists )
{
- client.getZooKeeper().setData(path,
data, setDataIfExistsVersion);
+ Stat setStat =
client.getZooKeeper().setData(path, data, setDataIfExistsVersion);
+ if(storingStat != null)
+ {
+
storingStat.setAversion(setStat.getAversion());
--- End diff --
Thanks, there was another place in CreateBuilderImpl doing the same thing,
and I've replaced that with DataTree#copyStat() also.
---