Skip to content

Commit

Permalink
[fix](metrics) fix bvar memtable_input_block_allocated_size
Browse files Browse the repository at this point in the history
  • Loading branch information
kaijchen authored and dataroaring committed Dec 20, 2023
1 parent d1cc6d9 commit 18c1bdb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions be/src/olap/memtable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@ std::unique_ptr<vectorized::Block> MemTable::to_block() {
!_tablet_schema->cluster_key_idxes().empty()) {
_sort_by_cluster_keys();
}
g_memtable_input_block_allocated_size << -_input_mutable_block.allocated_bytes();
_input_mutable_block.clear();
_insert_mem_tracker->release(_mem_usage);
_mem_usage = 0;
Expand Down

0 comments on commit 18c1bdb

Please sign in to comment.