Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JinheLin committed Jun 28, 2023
1 parent 61489d6 commit 0d0aec8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dbms/src/Common/MemoryTracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ void MemoryTracker::alloc(Int64 size, bool check_memory_limit)
formatReadableSizeWithBinarySuffix(current_limit));
}

fmt_buf.fmtAppend(", details: {}", memoryUsageDetail());
if (sub_root_of_query_storage_task_mem_trackers)
{
fmt_buf.fmtAppend(", details: {}", memoryUsageDetail());
}

throw DB::TiFlashException(fmt_buf.toString(), DB::Errors::Coprocessor::MemoryLimitExceeded);
}
Expand Down

0 comments on commit 0d0aec8

Please sign in to comment.