Skip to content

Commit

Permalink
[ISSUE #3381] Fix bug of when role change but not register again (#3442)
Browse files Browse the repository at this point in the history
  • Loading branch information
shendongsd committed Nov 3, 2021
1 parent 1657475 commit 2385f04
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@ public void changeToSlave(int brokerId) {
handleSlaveSynchronize(BrokerRole.SLAVE);

try {
this.registerBrokerAll(true, true, brokerConfig.isForceRegister());
this.registerBrokerAll(true, true, true);
} catch (Throwable ignored) {

}
Expand Down Expand Up @@ -1219,7 +1219,7 @@ public void changeToMaster(BrokerRole role) {
messageStoreConfig.setBrokerRole(role);

try {
this.registerBrokerAll(true, true, brokerConfig.isForceRegister());
this.registerBrokerAll(true, true, true);
} catch (Throwable ignored) {

}
Expand Down

0 comments on commit 2385f04

Please sign in to comment.