diff --git a/src/vnode/src/vnodeMain.c b/src/vnode/src/vnodeMain.c index d548c0fc98..b8bc29550e 100644 --- a/src/vnode/src/vnodeMain.c +++ b/src/vnode/src/vnodeMain.c @@ -252,7 +252,7 @@ int32_t vnodeOpen(int32_t vnode, char *rootDir) { #ifndef _SYNC pVnode->role = TAOS_SYNC_ROLE_MASTER; -#elif +#else if (pVnode->sync == NULL) { vnodeCleanUp(pVnode); return terrno;