kangpinghuang commented on a change in pull request #467: change Rowset pointer
to std::shared_ptr<Rowset>
URL: https://github.com/apache/incubator-doris/pull/467#discussion_r243909039
##########
File path: be/src/olap/tablet_meta.cpp
##########
@@ -172,8 +172,8 @@ const RowsetMeta* TabletMeta::get_inc_rowset(const
Version& version) const;
return rs_meta;
}
-NewStatus TabletMeta::modify_rowsets(const vector<RowsetMeta>& to_add,
- const vector<RowsetMeta>& to_delete) {
+NewStatus TabletMeta::modify_rowsets(const
vector<std::shared_ptr<RowsetMeta>>& to_add,
+ const
vector<std::shared_ptr<RowsetMeta>>& to_delete) {
std::lock_guard<std::mutex> lock(_mutex);
for (auto& to_delete_rs : to_delete) {
if (ContainsKey(to_delete, _rs_metas)) {
Review comment:
ContainsKey(to_delete, _rs_metas) -> ContainsKey(to_delete_rs, _rs_metas)?
to_delete_rs vs to_delete, I think these two are not good name.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]