From d317c4edc97723edac4929e6eb2555f22baacdfb Mon Sep 17 00:00:00 2001 From: obdev Date: Wed, 14 Jun 2023 02:23:33 +0000 Subject: [PATCH] Fix trace log bug --- src/observer/mysql/obmp_query.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/observer/mysql/obmp_query.cpp b/src/observer/mysql/obmp_query.cpp index f90d54faf8..56db0a2eb5 100644 --- a/src/observer/mysql/obmp_query.cpp +++ b/src/observer/mysql/obmp_query.cpp @@ -555,9 +555,7 @@ int ObMPQuery::process_single_stmt(const ObMultiStmtItem &multi_stmt_item, //otherwise there is a risk of coredump //@TODO: need to determine a mechanism to ensure the safety of memory access here } - if (enable_trace_log) { - ObThreadLogLevelUtils::clear(); - } + ObThreadLogLevelUtils::clear(); const int64_t debug_sync_timeout = GCONF.debug_sync_timeout; if (debug_sync_timeout > 0) { // ignore thread local debug sync actions to session actions failed