diff --git a/be/src/runtime/thread_context.h b/be/src/runtime/thread_context.h index 8bf2e9cfd4330e..e594b0790acf5f 100644 --- a/be/src/runtime/thread_context.h +++ b/be/src/runtime/thread_context.h @@ -79,13 +79,13 @@ #define SCOPED_CONSUME_MEM_TRACKER_BY_HOOK(mem_tracker) \ auto VARNAME_LINENUM(add_mem_consumer) = doris::AddThreadMemTrackerConsumerByHook(mem_tracker) -#define ORPHAN_TRACKER_CHECK() \ - DCHECK(!ExecEnv::ready() || !doris::config::enable_memory_orphan_check || \ - doris::thread_context()->thread_mem_tracker()->label() != "Orphan") \ +#define ORPHAN_TRACKER_CHECK() \ + DCHECK(!doris::ExecEnv::ready() || !doris::config::enable_memory_orphan_check || \ + doris::thread_context()->thread_mem_tracker()->label() != "Orphan") \ << doris::memory_orphan_check_msg -#define MEMORY_ORPHAN_CHECK() \ - DCHECK(!ExecEnv::ready() || !doris::config::enable_memory_orphan_check) \ +#define MEMORY_ORPHAN_CHECK() \ + DCHECK(!doris::ExecEnv::ready() || !doris::config::enable_memory_orphan_check) \ << doris::memory_orphan_check_msg; #else #define SCOPED_MEM_COUNT_BY_HOOK(scope_mem) (void)0 @@ -201,7 +201,7 @@ class ThreadContext { void consume_memory(const int64_t size) const { #ifdef USE_MEM_TRACKER - DCHECK(!ExecEnv::ready() || !doris::config::enable_memory_orphan_check || + DCHECK(!doris::ExecEnv::ready() || !doris::config::enable_memory_orphan_check || thread_mem_tracker()->label() != "Orphan") << doris::memory_orphan_check_msg; #endif