From 9f765048309ce66493895644e2fbb263e088894a Mon Sep 17 00:00:00 2001 From: Minghao Li Date: Mon, 20 Jun 2022 20:10:13 +0800 Subject: [PATCH] refactor(sync): propose fail when changing --- source/libs/sync/src/syncMain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/libs/sync/src/syncMain.c b/source/libs/sync/src/syncMain.c index dd2f2d3eac..599410510d 100644 --- a/source/libs/sync/src/syncMain.c +++ b/source/libs/sync/src/syncMain.c @@ -1515,7 +1515,7 @@ void syncNodeDoConfigChange(SSyncNode* pSyncNode, SSyncCfg* pNewConfig, SyncInde } } - // persist + // persist cfg raftCfgPersist(pSyncNode->pRaftCfg); char tmpbuf[512]; @@ -1533,7 +1533,7 @@ void syncNodeDoConfigChange(SSyncNode* pSyncNode, SSyncCfg* pNewConfig, SyncInde syncNodeBecomeFollower(pSyncNode, tmpbuf); } } else { - // persist + // persist cfg raftCfgPersist(pSyncNode->pRaftCfg); char tmpbuf[512]; -- GitLab