This is an automated email from the ASF dual-hosted git repository.

xuyang 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 b830f8e33be [enhancement](memtable) merge redundant mutex locks in 
_flush_memtable_async (#60068)
b830f8e33be is described below

commit b830f8e33be1ff725ec5c7fb75dd8d0fd26b7cd3
Author: LemonCL <[email protected]>
AuthorDate: Fri Jan 23 17:21:16 2026 +0800

    [enhancement](memtable) merge redundant mutex locks in 
_flush_memtable_async (#60068)
    
    merge redundant mutex locks in _flush_memtable_async
---
 be/src/olap/memtable_writer.cpp | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/be/src/olap/memtable_writer.cpp b/be/src/olap/memtable_writer.cpp
index 4e813f31c00..fff7a7fafab 100644
--- a/be/src/olap/memtable_writer.cpp
+++ b/be/src/olap/memtable_writer.cpp
@@ -160,9 +160,6 @@ Status MemTableWriter::_flush_memtable_async() {
         std::lock_guard<std::mutex> l(_mem_table_ptr_lock);
         memtable = _mem_table;
         _mem_table = nullptr;
-    }
-    {
-        std::lock_guard<std::mutex> l(_mem_table_ptr_lock);
         memtable->update_mem_type(MemType::WRITE_FINISHED);
         _freezed_mem_tables.push_back(memtable);
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to