invalid ret code while check alter msg

This commit is contained in:
Shengliang Guan 2020-12-02 11:34:08 +08:00
parent d3c1202782
commit 98e3defba8
1 changed files with 1 additions and 1 deletions

View File

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