Invalidate cache only when paths are attempted created
@@ -95,7 +95,7 @@ public class CuratorDatabase {
/** Creates a path in curator and all its parents as necessary. If the path already exists this does nothing. */
void create(Path path) {
- curator.create(path);
+ if (curator.create(path))
changeGenerationCounter.next(); // Increment counter to ensure getChildren sees any change.
}
