fix: arb append noop after become assigned

This commit is contained in:
Shungang Li 2024-03-21 15:48:10 +08:00
parent 4180eea091
commit acf42a3d7a
1 changed files with 4 additions and 0 deletions

View File

@ -302,6 +302,10 @@ int32_t syncBecomeAssignedLeader(SSyncNode* ths, SRpcMsg* pRpcMsg) {
goto _OVER;
}
syncNodeBecomeAssignedLeader(ths);
if (syncNodeAppendNoop(ths) < 0) {
sError("vgId:%d, assigned leader failed to append noop entry since %s", ths->vgId, terrstr());
}
}
errcode = TSDB_CODE_SUCCESS;
} else {