diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/leader/LeaderLatch.java b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/leader/LeaderLatch.java index 4411c5815..4d20f9afd 100644 --- a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/leader/LeaderLatch.java +++ b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/leader/LeaderLatch.java @@ -568,8 +568,7 @@ private void checkLeadership(List children) throws Exception { setLeadership(true); } }) - .forPath(ZKPaths.makePath(latchPath, localOurPath)); - + .forPath(localOurPath); return; }