stdpain commented on pull request #6120: URL: https://github.com/apache/incubator-doris/pull/6120#issuecomment-870554424
Is it a better way to provide a method such as ``` std::vector<std::pair<Version, RowsetSharedPtr>> Tablet::acquire_version_and_rowset() const { std::vector<std::pair<Version, RowsetSharedPtr>> res; ReadLock rdlock(&_meta_lock); for (const auto& it : _rs_version_map) { res.emplace_back(it.first, it.second); } return res; } ``` -- 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