Return-Path: X-Original-To: apmail-curator-dev-archive@minotaur.apache.org Delivered-To: apmail-curator-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4BD8B18222 for ; Mon, 24 Aug 2015 21:31:12 +0000 (UTC) Received: (qmail 21236 invoked by uid 500); 24 Aug 2015 21:31:12 -0000 Delivered-To: apmail-curator-dev-archive@curator.apache.org Received: (qmail 21196 invoked by uid 500); 24 Aug 2015 21:31:12 -0000 Mailing-List: contact dev-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@curator.apache.org Delivered-To: mailing list dev@curator.apache.org Received: (qmail 21179 invoked by uid 99); 24 Aug 2015 21:31:11 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Aug 2015 21:31:11 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 5A6ADE10B1; Mon, 24 Aug 2015 21:31:11 +0000 (UTC) From: cammckenzie To: dev@curator.apache.org Reply-To: dev@curator.apache.org References: In-Reply-To: Subject: [GitHub] curator pull request: CURATOR-214 - Implemented new ZK API to allo... Content-Type: text/plain Message-Id: <20150824213111.5A6ADE10B1@git1-us-west.apache.org> Date: Mon, 24 Aug 2015 21:31:11 +0000 (UTC) Github user cammckenzie commented on a diff in the pull request: https://github.com/apache/curator/pull/96#discussion_r37807339 --- Diff: curator-framework/src/main/java/org/apache/curator/framework/imps/CreateBuilderImpl.java --- @@ -520,12 +539,127 @@ public void processResult(int rc, String path, Object ctx, String name) } else { - sendBackgroundResponse(rc, path, ctx, name, operationAndData); + sendBackgroundResponse(rc, path, ctx, name, null, operationAndData); } } }, backgrounding.getContext() ); + } + else + { + client.getZooKeeper().create + ( + operationAndData.getData().getPath(), + operationAndData.getData().getData(), + acling.getAclList(operationAndData.getData().getPath()), + createMode, + new AsyncCallback.Create2Callback() { + + @Override + public void processResult(int rc, String path, Object ctx, String name, Stat stat) { + trace.commit(); + + //Need to manually populate the provided stat here. + storingStat.setAversion(stat.getAversion()); --- End diff -- Yeah, this is the only place that it's done which is why I left it inline. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---