fix compile error

This commit is contained in:
slguan 2020-04-17 12:21:16 +08:00
parent 0732786632
commit 84fc0e3a96
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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();