hzh0425 commented on code in PR #4406:
URL: https://github.com/apache/rocketmq/pull/4406#discussion_r889431370


##########
store/src/main/java/org/apache/rocketmq/store/ha/autoswitch/AutoSwitchHAService.java:
##########
@@ -100,9 +100,6 @@ public AutoSwitchHAService() {
 
         this.defaultMessageStore.recoverTopicQueueTable();
 
-        final HashSet<String> newSyncStateSet = new HashSet<>();
-        newSyncStateSet.add(this.localAddress);
-        setSyncStateSet(newSyncStateSet);

Review Comment:
   在 controller 里的逻辑是, 新选举出来的 master, syncStateSet 只有该 Master, 这里是为了应和 
controller 里的逻辑.



-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to