[fix](group commit) Fix group commit memory calculation (#28242)

This commit is contained in:
meiyi
2023-12-11 17:05:26 +08:00
committed by GitHub
parent ad483efca5
commit cff1de29ce

View File

@ -85,7 +85,7 @@ Status LoadBlockQueue::get_block(vectorized::Block* block, bool* find_block, boo
block->swap(*fblock.get());
*find_block = true;
_block_queue.pop_front();
_all_block_queues_bytes->fetch_sub(fblock->bytes(), std::memory_order_relaxed);
_all_block_queues_bytes->fetch_sub(block->bytes(), std::memory_order_relaxed);
_single_block_queue_bytes->fetch_sub(block->bytes(), std::memory_order_relaxed);
}
if (_block_queue.empty() && need_commit && _load_ids.empty()) {