fixed the error while pull the master

This commit is contained in:
Jiebin Sun 2024-11-26 03:08:01 +08:00
parent ffb2e2225b
commit 75a6dcdf3f

View File

@ -45,7 +45,7 @@ OvercommitResult OvercommitTracker::needToStopQuery(MemoryTracker * tracker, Int
// method OvercommitTracker::onQueryStop(MemoryTracker *) is
// always called with already acquired global mutex in
// ProcessListEntry::~ProcessListEntry().
auto global_lock = process_list->unsafeLock();
DB::ProcessList::Lock global_lock(process_list->getMutex());
std::unique_lock lk(overcommit_m);
size_t id = next_id++;