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