ソースを参照

applied doc patch for ZOOKEEPER-118

git-svn-id: https://svn.apache.org/repos/asf/hadoop/zookeeper/trunk@693529 13f79535-47bb-0310-9956-ffa450edef68
Patrick D. Hunt 16 年 前
コミット
1ff83d62d0

+ 3 - 1
CHANGES.txt

@@ -2,12 +2,14 @@ Trunk:
 
 Non-backward compatible changes:
 
-  ZOOKEEPER-132: Create Enum to replace CreateFlag in ZooKepper.create method (Jakob Homan)
+  ZOOKEEPER-132. Create Enum to replace CreateFlag in ZooKepper.create method (Jakob Homan via phunt)
 
 Backward compatibile changes:
 
   BUGFIXES: 
 
+  ZOOKEEPER-118. findbugs flagged switch statement in followerrequestprocessor.run() (Flavio Paiva Junqueira via phunt)
+
   ZOOKEEPER-39. Use Watcher objects rather than boolean on read operations.
   (Andrew Kornev)
 

+ 6 - 0
src/java/main/org/apache/zookeeper/server/quorum/FollowerRequestProcessor.java

@@ -64,6 +64,12 @@ public class FollowerRequestProcessor extends Thread implements
                 // the request to the leader so that we are ready to receive
                 // the response
                 nextProcessor.processRequest(request);
+                
+                // We now ship the request to the leader. As with all
+                // other quorum operations, sync also follows this code
+                // path, but different from others, we need to keep track
+                // of the sync operations this follower has pending, so we
+                // add it to pendingSyncs.
                 switch (request.type) {
                 case OpCode.sync:
                     zks.pendingSyncs.add(request);