fix rollback fail bug

This commit is contained in:
zh0 2021-07-27 11:27:14 +08:00 committed by wangzelin.wzl
parent 53b1e66384
commit a0978c20a8

View File

@ -1059,6 +1059,9 @@ int ObTransService::end_trans(
if (is_rollback && OB_TRANS_TIMEOUT == ret) {
if (OB_UNLIKELY(OB_SUCCESS != (tmp_ret = end_trans_callback_(cb, OB_SUCCESS, tenant_id)))) {
ret = tmp_ret;
} else {
// overwrite retcode when rollback timeout
ret = OB_SUCCESS;
}
} else {
if (OB_UNLIKELY(OB_SUCCESS != (tmp_ret = end_trans_callback_(cb, ret, tenant_id)))) {