Move assert

This commit is contained in:
Konstantin Bogdanov 2024-09-18 15:24:48 +02:00
parent b08e727aef
commit cb24849396
No known key found for this signature in database

View File

@ -692,12 +692,12 @@ void HashJoin::shrinkStoredBlocksToFit(size_t & total_bytes_in_join, bool force_
for (auto & stored_block : data->blocks) for (auto & stored_block : data->blocks)
{ {
doDebugAsserts();
size_t old_size = stored_block.allocatedBytes(); size_t old_size = stored_block.allocatedBytes();
stored_block = stored_block.shrinkToFit(); stored_block = stored_block.shrinkToFit();
size_t new_size = stored_block.allocatedBytes(); size_t new_size = stored_block.allocatedBytes();
doDebugAsserts();
if (old_size >= new_size) if (old_size >= new_size)
{ {
if (data->blocks_allocated_size < old_size - new_size) if (data->blocks_allocated_size < old_size - new_size)