Skip to content

Commit

Permalink
fix clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
gitccl committed May 10, 2023
1 parent 5b1359b commit e061256
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions be/src/vec/exec/scan/scanner_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ vectorized::BlockUPtr ScannerContext::get_free_block(bool* has_free_block,
*has_free_block = _free_blocks_capacity > 0;
// Always reduce _free_blocks_capacity by one since we always return a block
if (_free_blocks_capacity > 0) {
-- _free_blocks_capacity;
--_free_blocks_capacity;
}

if (!_free_blocks.empty()) {
Expand All @@ -147,7 +147,7 @@ void ScannerContext::return_free_block(std::unique_ptr<vectorized::Block> block)
_free_blocks_memory_usage->add(block->allocated_bytes());
std::lock_guard l(_free_blocks_lock);
_free_blocks.emplace_back(std::move(block));
++ _free_blocks_capacity;
++_free_blocks_capacity;
}

void ScannerContext::append_blocks_to_queue(std::vector<vectorized::BlockUPtr>& blocks) {
Expand Down

0 comments on commit e061256

Please sign in to comment.