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_r243900781
 
 

 ##########
 File path: be/src/olap/tablet_meta.cpp
 ##########
 @@ -47,12 +47,12 @@ NewStatus TabletMeta::deserialize_unlock(const string& 
meta_binary) {
     _shard_id = _tablet_meta_pb.shard_id();
     RETURN_NOT_OK(_schema.deserialize_from_pb(_tablet_meta_pb.schema()));
     for (auto& it : _tablet_meta_pb.rs_metas()) {
-        RowsetMeta rs_meta;
-        rs_meta.deserialize_from_pb(it);
+        std::shared_ptr<RowsetMeta> rs_meta(new RowsetMeta());
+        rs_meta.deserialize_from_pb(rs_meta);
 
 Review comment:
   use rs_meta.init()

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