This is an automated email from the ASF dual-hosted git repository.
kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new ffa407936f1 [fix](invert index) fix reader does not close fd (#27917)
ffa407936f1 is described below
commit ffa407936f1f2cbd597b4f7c295781a2237b06e8
Author: zzzxl <[email protected]>
AuthorDate: Sun Dec 3 23:52:04 2023 +0800
[fix](invert index) fix reader does not close fd (#27917)
---
be/src/olap/compaction.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/be/src/olap/compaction.cpp b/be/src/olap/compaction.cpp
index 4cb85529460..761e50db73e 100644
--- a/be/src/olap/compaction.cpp
+++ b/be/src/olap/compaction.cpp
@@ -606,9 +606,10 @@ Status
Compaction::construct_output_rowset_writer(RowsetWriterContext& ctx, bool
std::string file_str = p.filename().string();
lucene::store::Directory* dir =
DorisCompoundDirectory::getDirectory(fs, dir_str.c_str());
- auto reader = new DorisCompoundReader(dir,
file_str.c_str());
+ DorisCompoundReader reader(dir,
file_str.c_str());
std::vector<std::string> files;
- reader->list(&files);
+ reader.list(&files);
+ reader.close();
// why is 3?
// bkd index will write at least 3 files
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]