[fix](insert) fix txn error reason clearly (#16997)

Signed-off-by: nextdreamblue <zxw520blue1@163.com>
This commit is contained in:
xueweizhang
2023-03-01 20:28:41 +08:00
committed by GitHub
parent f1db0d9501
commit 34c5e84e9f

View File

@ -198,6 +198,7 @@ Status StreamLoadExecutor::pre_commit_txn(StreamLoadContext* ctx) {
if (status.is<PUBLISH_TIMEOUT>()) {
ctx->need_rollback = false;
}
ctx->status = status;
return status;
}
// precommit success, set need_rollback to false
@ -279,6 +280,7 @@ Status StreamLoadExecutor::commit_txn(StreamLoadContext* ctx) {
if (status.is<PUBLISH_TIMEOUT>()) {
ctx->need_rollback = false;
}
ctx->status = status;
return status;
}
// commit success, set need_rollback to false