This commit is contained in:
Shengliang Guan 2020-11-13 08:46:02 +00:00
parent 141cc3d188
commit 4e42b8cf5e
1 changed files with 1 additions and 0 deletions

View File

@ -580,6 +580,7 @@ static void syncChooseMaster(SSyncNode *pNode) {
pPeer = pNode->peerInfo[i];
if (pPeer->version == nodeVersion) {
pPeer->role = TAOS_SYNC_ROLE_SLAVE;
pPeer->sstatus = TAOS_SYNC_STATUS_CACHE;
sInfo("%s, it shall work as slave", pPeer->id);
}
}