[fix](insert) fix txn error reason clearly (#16997)
Signed-off-by: nextdreamblue <zxw520blue1@163.com>
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user