add compile option for sync
This commit is contained in:
parent
dc3c33a820
commit
0ba919dbac
|
@ -28,7 +28,7 @@ IF ((TD_LINUX_64) OR (TD_LINUX_32 AND TD_ARM))
|
||||||
ENDIF ()
|
ENDIF ()
|
||||||
|
|
||||||
IF (TD_VPEER)
|
IF (TD_VPEER)
|
||||||
TARGET_LINK_LIBRARIES(taosd balance)
|
TARGET_LINK_LIBRARIES(taosd balance sync)
|
||||||
ENDIF ()
|
ENDIF ()
|
||||||
|
|
||||||
SET(PREPARE_ENV_CMD "prepare_env_cmd")
|
SET(PREPARE_ENV_CMD "prepare_env_cmd")
|
||||||
|
|
|
@ -158,7 +158,7 @@ int32_t vnodeOpen(int32_t vnode, char *rootDir) {
|
||||||
syncInfo.writeToCache = vnodeWriteToQueue;
|
syncInfo.writeToCache = vnodeWriteToQueue;
|
||||||
syncInfo.confirmForward = dnodeSendRpcWriteRsp;
|
syncInfo.confirmForward = dnodeSendRpcWriteRsp;
|
||||||
syncInfo.notifyRole = vnodeNotifyRole;
|
syncInfo.notifyRole = vnodeNotifyRole;
|
||||||
// pVnode->sync = syncStart(&syncInfo);;
|
pVnode->sync = syncStart(&syncInfo);;
|
||||||
|
|
||||||
pVnode->events = NULL;
|
pVnode->events = NULL;
|
||||||
pVnode->cq = NULL;
|
pVnode->cq = NULL;
|
||||||
|
|
Loading…
Reference in New Issue