diff --git a/src/vnode/src/vnodeMain.c b/src/vnode/src/vnodeMain.c index 35ab13e35dd6ec954c7e9c34b6d7ef7325f4c024..1da6c582247d1ea6158d8d5c7f2f67bc0b1b68df 100644 --- a/src/vnode/src/vnodeMain.c +++ b/src/vnode/src/vnodeMain.c @@ -141,7 +141,7 @@ int32_t vnodeAlter(void *vparam, SCreateVnodeMsg *pVnodeCfg) { // vnode in non-ready state and still needs to return success instead of TSDB_CODE_VND_INVALID_STATUS // cfgVersion can be corrected by status msg - if (vnodeSetUpdatingStatus(pVnode) != 0) { + if (!vnodeSetUpdatingStatus(pVnode)) { vDebug("vgId:%d, vnode is not ready, do alter operation later", pVnode->vgId); return TSDB_CODE_SUCCESS; }