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

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


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new 232ee74566a [Fix](inverted index) fix memory leak for index compaction 
 (#38586)
232ee74566a is described below

commit 232ee74566af255d1b10d7064bc1401ac69c5201
Author: airborne12 <[email protected]>
AuthorDate: Wed Jul 31 19:19:38 2024 +0800

    [Fix](inverted index) fix memory leak for index compaction  (#38586)
    
    Pick from (#36209)
---
 be/src/olap/rowset/segment_v2/inverted_index_compaction.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/olap/rowset/segment_v2/inverted_index_compaction.cpp 
b/be/src/olap/rowset/segment_v2/inverted_index_compaction.cpp
index 1f988a75845..40a1d2218f8 100644
--- a/be/src/olap/rowset/segment_v2/inverted_index_compaction.cpp
+++ b/be/src/olap/rowset/segment_v2/inverted_index_compaction.cpp
@@ -58,7 +58,7 @@ Status compact_column(int64_t index_id, 
std::vector<lucene::store::Directory*>&
     for (auto* d : src_index_dirs) {
         if (d != nullptr) {
             d->close();
-            //_CLDELETE(d);
+            _CLDELETE(d);
         }
     }
     for (auto* d : dest_index_dirs) {


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

Reply via email to