This is an automated email from the ASF dual-hosted git repository. airborne pushed a commit to branch branch-3.0 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push: new 46d328197fc branch-3.0: [fix](segcompaction) fix segcompaction file not found when inverted index storage format is v1 #46054 (#46142) 46d328197fc is described below commit 46d328197fce45716508c39778658c2709b78a29 Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> AuthorDate: Mon Dec 30 13:02:02 2024 +0800 branch-3.0: [fix](segcompaction) fix segcompaction file not found when inverted index storage format is v1 #46054 (#46142) Cherry-picked from #46054 Co-authored-by: airborne12 <jiang...@selectdb.com> --- be/src/olap/rowset/beta_rowset_writer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/be/src/olap/rowset/beta_rowset_writer.cpp b/be/src/olap/rowset/beta_rowset_writer.cpp index f04c765908c..c25a1532d48 100644 --- a/be/src/olap/rowset/beta_rowset_writer.cpp +++ b/be/src/olap/rowset/beta_rowset_writer.cpp @@ -968,15 +968,14 @@ Status BetaRowsetWriter::create_segment_writer_for_segcompaction( InvertedIndexFileWriterPtr index_file_writer; if (_context.tablet_schema->has_inverted_index()) { io::FileWriterPtr idx_file_writer; + std::string prefix(InvertedIndexDescriptor::get_index_file_path_prefix(path)); if (_context.tablet_schema->get_inverted_index_storage_format() != InvertedIndexStorageFormatPB::V1) { - std::string prefix = - std::string {InvertedIndexDescriptor::get_index_file_path_prefix(path)}; std::string index_path = InvertedIndexDescriptor::get_index_file_path_v2(prefix); RETURN_IF_ERROR(_create_file_writer(index_path, idx_file_writer)); } index_file_writer = std::make_unique<InvertedIndexFileWriter>( - _context.fs(), path, _context.rowset_id.to_string(), _num_segcompacted, + _context.fs(), prefix, _context.rowset_id.to_string(), _num_segcompacted, _context.tablet_schema->get_inverted_index_storage_format(), std::move(idx_file_writer)); } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org