From e85954276f2f3545717861ffdbb9ae66e1356de6 Mon Sep 17 00:00:00 2001 From: Minghao Li Date: Tue, 18 Oct 2022 16:16:53 +0800 Subject: [PATCH] refactor(sync): rename functions --- source/libs/sync/src/syncCommit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libs/sync/src/syncCommit.c b/source/libs/sync/src/syncCommit.c index 8889fe02a0..2bbbd1f51f 100644 --- a/source/libs/sync/src/syncCommit.c +++ b/source/libs/sync/src/syncCommit.c @@ -45,7 +45,7 @@ // /\ UNCHANGED <> // 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; } -- GitLab