Ver Fonte

ZOOKEEPER-2923: The comment of the variable matchSyncs in class CommitProcessor has a mistake.

Author: Jiafu Jiang <jiangjiafu1989@gmail.com>

Reviewers: phunt@apache.org

Closes #408 from JiangJiafu/ZOOKEEPER-2923

Change-Id: Iaf5076b38aa950467b2664684ba98743ab131a5b
(cherry picked from commit 8be14c4d4743bebfd3e2b1759503d640480d4218)
Signed-off-by: Patrick Hunt <phunt@apache.org>
(cherry picked from commit c98d44a7af8e7883eb7e37d165b3ececb1f5cd7d)
Jiafu Jiang há 7 anos atrás
pai
commit
0fe7a09ab5

+ 3 - 4
src/java/main/org/apache/zookeeper/server/quorum/CommitProcessor.java

@@ -112,10 +112,9 @@ public class CommitProcessor extends ZooKeeperCriticalThread implements
     private Object emptyPoolSync = new Object();
 
     /**
-     * This flag indicates whether we need to wait for a response to come back
-     * from the leader or we just let the sync operation flow through like a
-     * read. The flag will be true if the CommitProcessor is in a Leader
-     * pipeline.
+     * This flag indicates whether we need to wait for a response to come back from the
+     * leader or we just let the sync operation flow through like a read. The flag will
+     * be false if the CommitProcessor is in a Leader pipeline.
      */
     boolean matchSyncs;