fix(meta/commit): make begin return code instead of 0

This commit is contained in:
Minglei Jin 2024-11-28 10:53:23 +08:00
parent 7f9a3bf9de
commit cd22ddbdd2
1 changed files with 4 additions and 2 deletions

View File

@ -52,7 +52,8 @@ _exit:
} else { } else {
metaDebug("vgId:%d %s success", TD_VID(pMeta->pVnode), __func__); metaDebug("vgId:%d %s success", TD_VID(pMeta->pVnode), __func__);
} }
return 0;
TAOS_RETURN(code);
} }
// commit the meta txn // commit the meta txn
@ -85,7 +86,8 @@ _exit:
} else { } else {
metaDebug("vgId:%d %s success", TD_VID(pMeta->pVnode), __func__); metaDebug("vgId:%d %s success", TD_VID(pMeta->pVnode), __func__);
} }
return code;
TAOS_RETURN(code);
} }
// abort the meta txn // abort the meta txn