enh(sync): forbid elect for this round

This commit is contained in:
Minghao Li 2022-06-06 11:40:37 +08:00
parent 9c1e1b2f96
commit 4b87154b0e
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ int32_t syncNodeOnRequestVoteCb(SSyncNode* ths, SyncRequestVote* pMsg) {
// vote again, no harm
raftStoreVote(ths->pRaftStore, &(pMsg->srcId));
// forbid elect for this round
syncNodeResetElectTimer(ths);
}