airborne12 commented on code in PR #41625:
URL: https://github.com/apache/doris/pull/41625#discussion_r1818845470
##########
be/src/olap/rowset/beta_rowset_writer.cpp:
##########
@@ -189,13 +189,63 @@ Result<std::vector<size_t>>
SegmentFileCollection::segments_file_size(int seg_id
return ResultError(st);
}
+InvertedIndexFileCollection::~InvertedIndexFileCollection() = default;
+
+Status InvertedIndexFileCollection::add(int seg_id,
InvertedIndexFileWriterPtr&& index_writer) {
+ std::lock_guard lock(_lock);
+
+ _inverted_index_file_writers.emplace(seg_id, std::move(index_writer));
Review Comment:
emplace need to check dup key
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]