mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-25 11:10:49 +00:00
Free chunks when merge sort is finished at MergeSorter.
This commit is contained in:
parent
ba6768557e
commit
6a781cf2c8
@ -222,6 +222,8 @@ Chunk MergeSorter::mergeImpl(std::priority_queue<TSortCursor> & queue)
|
||||
return Chunk(std::move(merged_columns), merged_rows);
|
||||
}
|
||||
|
||||
chunks.clear();
|
||||
|
||||
if (merged_rows == 0)
|
||||
return {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user