Skip to content

Commit 0d4a7b7

Browse files
committed
synchronize checkLeadership
Signed-off-by: tison <[email protected]>
1 parent a2060c1 commit 0d4a7b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • curator-recipes/src/main/java/org/apache/curator/framework/recipes/leader

curator-recipes/src/main/java/org/apache/curator/framework/recipes/leader/LeaderLatch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ private synchronized void internalStart()
576576
@VisibleForTesting
577577
volatile CountDownLatch debugCheckLeaderShipLatch = null;
578578

579-
private void checkLeadership(List<String> children) throws Exception
579+
private synchronized void checkLeadership(List<String> children) throws Exception
580580
{
581581
if ( debugCheckLeaderShipLatch != null )
582582
{

0 commit comments

Comments
 (0)