From 79e8f8e6ea6cb4be3dda1444516217a1b78cfb3b Mon Sep 17 00:00:00 2001 From: Minghao Li Date: Mon, 21 Mar 2022 16:50:13 +0800 Subject: [PATCH] sync refactor --- include/libs/sync/sync.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/libs/sync/sync.h b/include/libs/sync/sync.h index 68ca9eff17..a38431a1b2 100644 --- a/include/libs/sync/sync.h +++ b/include/libs/sync/sync.h @@ -157,7 +157,8 @@ void syncCleanUp(); int64_t syncStart(const SSyncInfo* pSyncInfo); void syncStop(int64_t rid); int32_t syncReconfig(int64_t rid, const SSyncCfg* pSyncCfg); -int32_t syncForwardToPeer(int64_t rid, const SRpcMsg* pMsg, bool isWeak); +int32_t syncPropose(int64_t rid, const SRpcMsg* pMsg, bool isWeak); // use this function +int32_t syncForwardToPeer(int64_t rid, const SRpcMsg* pMsg, bool isWeak); // just for compatibility ESyncState syncGetMyRole(int64_t rid); void syncGetNodesRole(int64_t rid, SNodesRole* pNodeRole);