yiguolei commented on code in PR #13487: URL: https://github.com/apache/doris/pull/13487#discussion_r1006467366
########## be/src/olap/rowset/beta_rowset_writer.cpp: ########## @@ -67,8 +67,13 @@ BetaRowsetWriter::~BetaRowsetWriter() { Status BetaRowsetWriter::init(const RowsetWriterContext& rowset_writer_context) { _context = rowset_writer_context; _rowset_meta.reset(new RowsetMeta); - if (_context.data_dir) { + if (_context.fs == nullptr && _context.data_dir) { _rowset_meta->set_fs(_context.data_dir->fs()); + } else { + _rowset_meta->set_fs(_context.fs); + } + if (_context.resource_id.size() > 0) { + _rowset_meta->set_resource_id(_context.resource_id); Review Comment: why rowset meta need save resource_id? I did not find use of it. -- 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