From b21be06c5ceeb7207f61a39d3cce044ab433325e Mon Sep 17 00:00:00 2001 From: obdev Date: Mon, 6 Mar 2023 11:13:44 +0000 Subject: [PATCH] register timer task when transaction is timeout --- src/storage/tx/ob_trans_part_ctx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/tx/ob_trans_part_ctx.cpp b/src/storage/tx/ob_trans_part_ctx.cpp index 14470aa95..f3267bad2 100644 --- a/src/storage/tx/ob_trans_part_ctx.cpp +++ b/src/storage/tx/ob_trans_part_ctx.cpp @@ -1323,7 +1323,7 @@ int ObPartTransCtx::check_scheduler_status() last_ask_scheduler_status_ts_ = ObClockGenerator::getClock(); } - if (is_committing_()) { + if (is_committing_() || ObClockGenerator::getClock() > trans_expired_time_) { (void)check_and_register_timeout_task_(); } }