platoneko commented on code in PR #31484: URL: https://github.com/apache/doris/pull/31484#discussion_r1504214800
########## be/src/olap/rowset/segment_v2/inverted_index_writer.cpp: ########## @@ -209,8 +214,21 @@ class InvertedIndexColumnWriterImpl : public InvertedIndexColumnWriter { return Status::InternalError("init_fulltext_index directory already exists"); } - dir = std::unique_ptr<DorisCompoundDirectory>(DorisCompoundDirectoryFactory::getDirectory( - _fs, index_path.c_str(), use_compound_file_writer, can_use_ram_dir)); + if (config::is_cloud_mode()) { + _lfs = doris::io::LocalFileSystem::create( Review Comment: 没有必要创建 local fs 实例,直接使用 global local fs 传入绝对路径 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org