mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
added assertion
This commit is contained in:
parent
c2f4dc0f14
commit
1c8216b5c6
@ -80,6 +80,7 @@ void ThreadGroup::linkThread(UInt64 thread_id)
|
||||
void ThreadGroup::unlinkThread()
|
||||
{
|
||||
std::lock_guard lock(mutex);
|
||||
chassert(active_thread_count > 0);
|
||||
--active_thread_count;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user