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 862cb0912a7 [fix](load) count MemTable::to_block memory in flush 
tracker (#28312)
862cb0912a7 is described below

commit 862cb0912a759a3574396205312942b747cf8640
Author: Kaijie Chen <c...@apache.org>
AuthorDate: Wed Dec 13 14:49:25 2023 +0800

    [fix](load) count MemTable::to_block memory in flush tracker (#28312)
---
 be/src/olap/memtable_flush_executor.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/olap/memtable_flush_executor.cpp 
b/be/src/olap/memtable_flush_executor.cpp
index ac114291a0b..bd13ea2cce9 100644
--- a/be/src/olap/memtable_flush_executor.cpp
+++ b/be/src/olap/memtable_flush_executor.cpp
@@ -116,9 +116,9 @@ Status FlushToken::_do_flush_memtable(MemTable* memtable, 
int32_t segment_id, in
     int64_t duration_ns;
     SCOPED_RAW_TIMER(&duration_ns);
     signal::set_signal_task_id(_rowset_writer->load_id());
-    std::unique_ptr<vectorized::Block> block = memtable->to_block();
     {
         SCOPED_CONSUME_MEM_TRACKER(memtable->flush_mem_tracker());
+        std::unique_ptr<vectorized::Block> block = memtable->to_block();
         SKIP_MEMORY_CHECK(RETURN_IF_ERROR(
                 _rowset_writer->flush_memtable(block.get(), segment_id, 
flush_size)));
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to