refactor(sync): rename functions

This commit is contained in:
Minghao Li 2022-10-18 16:16:53 +08:00
parent 1b36ad119c
commit e85954276f
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@
// /\ UNCHANGED <<messages, serverVars, candidateVars, leaderVars, log>>
//
void syncMaybeAdvanceCommitIndex(SSyncNode* pSyncNode) {
if (pSyncNode->state == TAOS_SYNC_STATE_LEADER) {
if (pSyncNode->state != TAOS_SYNC_STATE_LEADER) {
syncNodeErrorLog(pSyncNode, "not leader, can not advance commit index");
return;
}