提交 d5cd0ae9 编写于 作者: S Shengliang Guan

TD-1948

上级 9fd8ed52
...@@ -576,6 +576,7 @@ static void syncChooseMaster(SSyncNode *pNode) { ...@@ -576,6 +576,7 @@ static void syncChooseMaster(SSyncNode *pNode) {
sInfo("vgId:%d, start to work as master", pNode->vgId); sInfo("vgId:%d, start to work as master", pNode->vgId);
nodeRole = TAOS_SYNC_ROLE_MASTER; nodeRole = TAOS_SYNC_ROLE_MASTER;
#if 0
for (int32_t i = 0; i < pNode->replica; ++i) { for (int32_t i = 0; i < pNode->replica; ++i) {
pPeer = pNode->peerInfo[i]; pPeer = pNode->peerInfo[i];
if (pPeer->version == nodeVersion) { if (pPeer->version == nodeVersion) {
...@@ -584,7 +585,7 @@ static void syncChooseMaster(SSyncNode *pNode) { ...@@ -584,7 +585,7 @@ static void syncChooseMaster(SSyncNode *pNode) {
sInfo("%s, it shall work as slave", pPeer->id); sInfo("%s, it shall work as slave", pPeer->id);
} }
} }
#endif
syncResetFlowCtrl(pNode); syncResetFlowCtrl(pNode);
(*pNode->notifyRole)(pNode->ahandle, nodeRole); (*pNode->notifyRole)(pNode->ahandle, nodeRole);
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册