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_r243901065
 
 

 ##########
 File path: be/src/olap/tablet_meta.h
 ##########
 @@ -90,12 +90,13 @@ class TabletMeta {
 
     Newstatus add_inc_rs_meta(const RowsetMeta& rs_meta);
     NewStatus delete_inc_rs_meta_by_version(const Version& version);
-    const RowsetMeta* get_inc_rs_meta(const Version& version) const;
+    const std::shared_ptr<RowsetMeta> get_inc_rs_meta(const Version& version) 
const;
 
     const std::vector<RowsetMeta>& all_inc_rs_metas() const;
     const std::vector<RowsetMeta>& all_rs_metas() const;
 
-    NewStatus modify_rowsets(const vector<RowsetMeta>& to_add, const 
vector<RowsetMeta>& to_delete);
+    NewStatus modify_rowsets(const vector<std::shared_ptr<RowsetMeta>>& to_add,
+                             const vector<std::shared_ptr<RowsetMeta>>& 
to_delete);
 
 Review comment:
   pls modify to_add and to_delete

----------------------------------------------------------------
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]

Reply via email to