refactor(sync): add syncIsReadyForRead

This commit is contained in:
Minghao Li 2022-08-15 18:50:14 +08:00
parent 947d90e196
commit 4164d14637
1 changed files with 2 additions and 2 deletions

View File

@ -875,8 +875,8 @@ int32_t syncNodePropose(SSyncNode* pSyncNode, SRpcMsg* pMsg, bool isWeak) {
pSyncNode->changing = true;
}
// not restored
if (!pSyncNode->restoreFinish) {
// not restored, vnode enable
if (!pSyncNode->restoreFinish && pSyncNode->vgId != 1) {
ret = -1;
terrno = TSDB_CODE_SYN_PROPOSE_NOT_READY;
sError("vgId:%d, failed to sync propose since not ready, type:%s, last:%ld, cmt:%ld", pSyncNode->vgId,