curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randg...@apache.org
Subject git commit: ZKPaths.makePath should return the valid path when the child is /
Date Wed, 10 Jul 2013 05:54:42 GMT
Updated Branches:
  refs/heads/2.1.1-incubating 9b81582da -> d5b470ad3
  refs/heads/CURATOR-46 [created] d5b470ad3


ZKPaths.makePath should return the valid path when the child is /


Project: http://git-wip-us.apache.org/repos/asf/incubator-curator/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-curator/commit/d5b470ad
Tree: http://git-wip-us.apache.org/repos/asf/incubator-curator/tree/d5b470ad
Diff: http://git-wip-us.apache.org/repos/asf/incubator-curator/diff/d5b470ad

Branch: refs/heads/2.1.1-incubating
Commit: d5b470ad302438657248f3c215f8ac9ea7bbdff2
Parents: 9b81582
Author: randgalt <randgalt@apache.org>
Authored: Tue Jul 9 22:54:26 2013 -0700
Committer: randgalt <randgalt@apache.org>
Committed: Tue Jul 9 22:54:26 2013 -0700

----------------------------------------------------------------------
 curator-client/src/main/java/org/apache/curator/utils/ZKPaths.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-curator/blob/d5b470ad/curator-client/src/main/java/org/apache/curator/utils/ZKPaths.java
----------------------------------------------------------------------
diff --git a/curator-client/src/main/java/org/apache/curator/utils/ZKPaths.java b/curator-client/src/main/java/org/apache/curator/utils/ZKPaths.java
index 40c5bd7..57ee75a 100644
--- a/curator-client/src/main/java/org/apache/curator/utils/ZKPaths.java
+++ b/curator-client/src/main/java/org/apache/curator/utils/ZKPaths.java
@@ -212,7 +212,7 @@ public class ZKPaths
             path.append("/");
         }
         path.append(parent);
-        if ( (child == null) || (child.length() == 0) )
+        if ( (child == null) || (child.length() == 0) || (child.equals("/")))
         {
             return path.toString();
         }


Mime
View raw message