Skip to content

Commit

Permalink
[fix](load) add lock in active_memtable_mem_consumption apache#25207 (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
kaijchen authored and gnehil committed Dec 4, 2023
1 parent 2611fa4 commit 4234228
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions be/src/olap/delta_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,7 @@ int64_t DeltaWriter::mem_consumption(MemType mem) {
}

int64_t DeltaWriter::active_memtable_mem_consumption() {
std::lock_guard<std::mutex> l(_lock);
return _mem_table != nullptr ? _mem_table->memory_usage() : 0;
}

Expand Down

0 comments on commit 4234228

Please sign in to comment.