TD-1948
This commit is contained in:
parent
141cc3d188
commit
4e42b8cf5e
|
@ -580,6 +580,7 @@ static void syncChooseMaster(SSyncNode *pNode) {
|
||||||
pPeer = pNode->peerInfo[i];
|
pPeer = pNode->peerInfo[i];
|
||||||
if (pPeer->version == nodeVersion) {
|
if (pPeer->version == nodeVersion) {
|
||||||
pPeer->role = TAOS_SYNC_ROLE_SLAVE;
|
pPeer->role = TAOS_SYNC_ROLE_SLAVE;
|
||||||
|
pPeer->sstatus = TAOS_SYNC_STATUS_CACHE;
|
||||||
sInfo("%s, it shall work as slave", pPeer->id);
|
sInfo("%s, it shall work as slave", pPeer->id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue