mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 09:10:48 +00:00
Delete pipeline when query is finished.
This commit is contained in:
parent
9f943b739f
commit
4453327344
@ -510,8 +510,11 @@ void TCPHandler::processOrdinaryQueryWithProcessors(size_t num_threads)
|
||||
}
|
||||
});
|
||||
|
||||
/// Wait in case of exception.
|
||||
SCOPE_EXIT(pool.wait());
|
||||
/// Wait in case of exception. Delete pipeline to release memory.
|
||||
SCOPE_EXIT(
|
||||
pool.wait();
|
||||
pipeline = QueryPipeline()
|
||||
);
|
||||
|
||||
while (true)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user