From d5cd0ae9cb3210f5a8fd5e5520c19cb873cbe220 Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Fri, 13 Nov 2020 10:03:24 +0000 Subject: [PATCH] TD-1948 --- src/sync/src/syncMain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sync/src/syncMain.c b/src/sync/src/syncMain.c index adc420f376..44f66bc70c 100644 --- a/src/sync/src/syncMain.c +++ b/src/sync/src/syncMain.c @@ -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 { -- GitLab