Github user cammckenzie commented on a diff in the pull request:
https://github.com/apache/curator/pull/303#discussion_r251685066
--- Diff:
curator-framework/src/main/java/org/apache/curator/framework/imps/CreateBuilderImpl.java
---
@@ -48,19 +50,21 @@
public class CreateBuilderImpl implements CreateBuilder, CreateBuilder2,
BackgroundOperation<PathAndBytes>, ErrorListenerPathAndBytesable<String>
{
+ private final Logger log = LoggerFactory.getLogger(getClass());
private final CuratorFrameworkImpl client;
private CreateMode createMode;
private Backgrounding backgrounding;
private boolean createParentsIfNeeded;
private boolean createParentsAsContainers;
- private boolean doProtected;
private boolean compress;
private boolean setDataIfExists;
private int setDataIfExistsVersion = -1;
- private String protectedId;
private ACLing acling;
private Stat storingStat;
private long ttl;
+ private boolean doProtected;
+ private String protectedId;
+ private long initialSessionId;
--- End diff --
protectedEphemeralSessionID? And then maybe move the initialisation check
so that it only occurs if Curator is actually creating a protected ephemeral
node, rather than always initialising on the first forPath() call?
---