zhangmeng916 commented on a change in pull request #1124:
URL: https://github.com/apache/helix/pull/1124#discussion_r456162902



##########
File path: 
helix-core/src/main/java/org/apache/helix/controller/stages/CurrentStateComputationStage.java
##########
@@ -236,6 +267,11 @@ private void updateCurrentStates(LiveInstance instance, 
Collection<CurrentState>
     }
   }
 
+  private void setStaleMessage(CurrentStateOutput currentStateOutput, String 
instanceName,

Review comment:
       I mean this two lines:
   updatePendingMessages(instance, messages.values(), relayMessages.values(), 
currentStateOutput,
             resourceMap);
         cache.setStaleMessages(currentStateOutput.getStaleMessageMap());
   
   The second one is redundant. currentStateOutput is already updated in the 
function. But seems you think it's better to have the second one? 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to