提交 19bc7610 编写于 作者: 陶建辉(Jeff)'s avatar 陶建辉(Jeff)

compliing opton for sync

上级 b9c08aff
...@@ -249,13 +249,14 @@ int32_t vnodeOpen(int32_t vnode, char *rootDir) { ...@@ -249,13 +249,14 @@ int32_t vnodeOpen(int32_t vnode, char *rootDir) {
syncInfo.notifyRole = vnodeNotifyRole; syncInfo.notifyRole = vnodeNotifyRole;
syncInfo.notifyFileSynced = vnodeNotifyFileSynced; syncInfo.notifyFileSynced = vnodeNotifyFileSynced;
pVnode->sync = syncStart(&syncInfo); pVnode->sync = syncStart(&syncInfo);
#ifndef _SYNC
pVnode->role = TAOS_SYNC_ROLE_MASTER;
#elif
if (pVnode->sync == NULL) { if (pVnode->sync == NULL) {
vnodeCleanUp(pVnode); vnodeCleanUp(pVnode);
return terrno; return terrno;
} }
#ifndef _SYNC
pVnode->role = TAOS_SYNC_ROLE_MASTER;
#endif #endif
// start continuous query // start continuous query
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册