Merge pull request #28958 from taosdata/fix/TD-33037

fix(meta/commit): make begin return code instead of 0
This commit is contained in:
Shengliang Guan 2024-12-02 16:43:02 +08:00 committed by GitHub
commit fb8a10e717
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

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