From 84fc0e3a968adba6b34e0b2ed5883e7741d41b4a Mon Sep 17 00:00:00 2001 From: slguan Date: Fri, 17 Apr 2020 12:21:16 +0800 Subject: [PATCH] fix compile error --- src/mnode/src/mgmtReplica.c | 3 --- src/vnode/src/vnodeMain.c | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/mnode/src/mgmtReplica.c b/src/mnode/src/mgmtReplica.c index 4ce9a79572..05a303a69b 100644 --- a/src/mnode/src/mgmtReplica.c +++ b/src/mnode/src/mgmtReplica.c @@ -64,7 +64,4 @@ int32_t replicaAllocVnodes(SVgObj *pVgroup) { return TSDB_CODE_SUCCESS; } -tsync_h syncStart(const SSyncInfo *info) { return NULL; } -int syncForwardToPeer(tsync_h shandle, void *pHead, void *mhandle) { return 0; } - #endif diff --git a/src/vnode/src/vnodeMain.c b/src/vnode/src/vnodeMain.c index a7c53d1258..0827d90ebc 100644 --- a/src/vnode/src/vnodeMain.c +++ b/src/vnode/src/vnodeMain.c @@ -41,6 +41,12 @@ static int vnodeGetWalInfo(void *ahandle, char *name, uint32_t *index); static void vnodeNotifyRole(void *ahandle, int8_t role); static pthread_once_t vnodeModuleInit = PTHREAD_ONCE_INIT; + +#ifndef _SYNC +tsync_h syncStart(const SSyncInfo *info) { return NULL; } +int syncForwardToPeer(tsync_h shandle, void *pHead, void *mhandle) { return 0; } +#endif + static void vnodeInit() { vnodeInitWriteFp(); vnodeInitReadFp(); -- GitLab