From 7c3fe06e5d0cb05896b4f31819678592eb48535d Mon Sep 17 00:00:00 2001 From: tison Date: Fri, 10 May 2024 18:53:41 +0800 Subject: [PATCH] fixup path Signed-off-by: tison --- .../apache/curator/framework/recipes/leader/LeaderLatch.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; }