From 850ef4e4c30ed82a28ddbaf3cc37820d406eb956 Mon Sep 17 00:00:00 2001 From: obdev Date: Mon, 19 Jul 2021 20:48:14 +0800 Subject: [PATCH] optimize iterate_trans_stat --- src/storage/transaction/ob_trans_service.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/storage/transaction/ob_trans_service.cpp b/src/storage/transaction/ob_trans_service.cpp index 46a82f7358..501fcde96b 100644 --- a/src/storage/transaction/ob_trans_service.cpp +++ b/src/storage/transaction/ob_trans_service.cpp @@ -6746,7 +6746,9 @@ int ObTransService::iterate_trans_stat(const common::ObPartitionKey& partition, } else { // do nothing } - sche_trans_ctx_mgr_.print_all_ctx(PRINT_SCHE_COUNT); + if (REACH_TIME_INTERVAL(60 * 1000 * 1000)) { + sche_trans_ctx_mgr_.print_all_ctx(PRINT_SCHE_COUNT); + } return ret; } -- GitLab