Merge pull request #5287 from taosdata/fix/TD-3073

[TD-3073]<fix>: fix syncing role not displayed issue
This commit is contained in:
Shengliang Guan 2021-02-26 13:43:46 +08:00 committed by GitHub
commit 2d369838cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -276,7 +276,8 @@ void *syncRestoreData(void *param) {
atomic_add_fetch_32(&tsSyncNum, 1); atomic_add_fetch_32(&tsSyncNum, 1);
sInfo("%s, start to restore data, sstatus:%s", pPeer->id, syncStatus[nodeSStatus]); sInfo("%s, start to restore data, sstatus:%s", pPeer->id, syncStatus[nodeSStatus]);
(*pNode->notifyRoleFp)(pNode->vgId, TAOS_SYNC_ROLE_SYNCING); nodeRole = TAOS_SYNC_ROLE_SYNCING;
(*pNode->notifyRoleFp)(pNode->vgId, nodeRole);
if (syncOpenRecvBuffer(pNode) < 0) { if (syncOpenRecvBuffer(pNode) < 0) {
sError("%s, failed to allocate recv buffer, restart connection", pPeer->id); sError("%s, failed to allocate recv buffer, restart connection", pPeer->id);