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

yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new f7a52e49539 branch-4.0: [opt](inverted index) release dir memory after 
index file writer close #59031 (#59050)
f7a52e49539 is described below

commit f7a52e49539b0e300fc61ef6ecdabbbb5c7c2503
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Dec 17 18:52:59 2025 +0800

    branch-4.0: [opt](inverted index) release dir memory after index file 
writer close #59031 (#59050)
    
    Cherry-picked from #59031
    
    Co-authored-by: Jack <[email protected]>
---
 be/src/olap/rowset/segment_v2/index_file_writer.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/be/src/olap/rowset/segment_v2/index_file_writer.cpp 
b/be/src/olap/rowset/segment_v2/index_file_writer.cpp
index 247d83cf48f..5c3c11bde95 100644
--- a/be/src/olap/rowset/segment_v2/index_file_writer.cpp
+++ b/be/src/olap/rowset/segment_v2/index_file_writer.cpp
@@ -223,6 +223,7 @@ Status IndexFileWriter::close() {
     if (config::enable_write_index_searcher_cache) {
         return add_into_searcher_cache();
     }
+    _indices_dirs.clear();
     return Status::OK();
 }
 


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

Reply via email to