Repository: curator Updated Branches: refs/heads/master 26ffdfb89 -> 1720520f2
CURATOR-489: CreateBuilderImpl assigns protectedId if doProtected is true Project: http://git-wip-us.apache.org/repos/asf/curator/repo Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/5c27ecc2 Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/5c27ecc2 Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/5c27ecc2 Branch: refs/heads/master Commit: 5c27ecc29c3503633462cd95971ceb6a91175404 Parents: 26ffdfb Author: josh gruenberg <[email protected]> Authored: Tue Dec 4 14:17:15 2018 -0700 Committer: josh gruenberg <[email protected]> Committed: Tue Dec 4 14:17:15 2018 -0700 ---------------------------------------------------------------------- .../org/apache/curator/framework/imps/CreateBuilderImpl.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/curator/blob/5c27ecc2/curator-framework/src/main/java/org/apache/curator/framework/imps/CreateBuilderImpl.java ---------------------------------------------------------------------- diff --git a/curator-framework/src/main/java/org/apache/curator/framework/imps/CreateBuilderImpl.java b/curator-framework/src/main/java/org/apache/curator/framework/imps/CreateBuilderImpl.java index b2a3fbc..ce82542 100644 --- a/curator-framework/src/main/java/org/apache/curator/framework/imps/CreateBuilderImpl.java +++ b/curator-framework/src/main/java/org/apache/curator/framework/imps/CreateBuilderImpl.java @@ -91,13 +91,15 @@ public class CreateBuilderImpl implements CreateBuilder, CreateBuilder2, Backgro this.backgrounding = backgrounding; this.createParentsIfNeeded = createParentsIfNeeded; this.createParentsAsContainers = createParentsAsContainers; - this.doProtected = doProtected; this.compress = compress; this.setDataIfExists = setDataIfExists; - protectedId = null; this.acling = new ACLing(client.getAclProvider(), aclList); this.storingStat = storingStat; this.ttl = ttl; + if ( doProtected ) + { + setProtected(); + } } public void setSetDataIfExistsVersion(int version)
