This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 4d2fb1fffba [fix](load) add lock in active_memtable_mem_consumption
(#27101)
4d2fb1fffba is described below
commit 4d2fb1fffba01e678c029c54b3e5e96749d8f157
Author: Kaijie Chen <[email protected]>
AuthorDate: Fri Nov 17 15:03:15 2023 +0800
[fix](load) add lock in active_memtable_mem_consumption (#27101)
---
be/src/olap/memtable_writer.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/be/src/olap/memtable_writer.cpp b/be/src/olap/memtable_writer.cpp
index bd81fcd7852..a782901f441 100644
--- a/be/src/olap/memtable_writer.cpp
+++ b/be/src/olap/memtable_writer.cpp
@@ -357,6 +357,7 @@ int64_t MemTableWriter::mem_consumption(MemType mem) {
}
int64_t MemTableWriter::active_memtable_mem_consumption() {
+ std::lock_guard<std::mutex> l(_lock);
return _mem_table != nullptr ? _mem_table->memory_usage() : 0;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]