This commit is contained in:
Shengliang Guan 2020-11-13 10:03:24 +00:00
parent 9fd8ed5239
commit d5cd0ae9cb
1 changed files with 2 additions and 1 deletions

View File

@ -576,6 +576,7 @@ static void syncChooseMaster(SSyncNode *pNode) {
sInfo("vgId:%d, start to work as master", pNode->vgId);
nodeRole = TAOS_SYNC_ROLE_MASTER;
#if 0
for (int32_t i = 0; i < pNode->replica; ++i) {
pPeer = pNode->peerInfo[i];
if (pPeer->version == nodeVersion) {
@ -584,7 +585,7 @@ static void syncChooseMaster(SSyncNode *pNode) {
sInfo("%s, it shall work as slave", pPeer->id);
}
}
#endif
syncResetFlowCtrl(pNode);
(*pNode->notifyRole)(pNode->ahandle, nodeRole);
} else {