kangpinghuang commented on a change in pull request #712: Rename rowset id 
after clone from remote
URL: https://github.com/apache/incubator-doris/pull/712#discussion_r263733990
 
 

 ##########
 File path: be/src/olap/olap_snapshot_converter.cpp
 ##########
 @@ -77,14 +77,27 @@ OLAPStatus OlapSnapshotConverter::to_tablet_meta_pb(const 
OLAPHeaderMessage& ola
     schema->set_bf_fpp(olap_header.bf_fpp());
     schema->set_next_column_unique_id(olap_header.next_column_unique_id());
 
+
+    std::unordered_map<Version, RowsetMetaPB*, HashOfVersion> _rs_version_map;
     for (auto& delta : olap_header.delta()) {
         RowsetMetaPB* rowset_meta = tablet_meta_pb->add_rs_metas();
         RowsetId next_id;
         RETURN_NOT_OK(RowsetIdGenerator::instance()->get_next_id(data_dir, 
&next_id));
         convert_to_rowset_meta(delta, next_id, olap_header.tablet_id(), 
olap_header.schema_hash(), rowset_meta);
+        Version rowset_version = { delta.start_version(), delta.end_version() 
};
+        _rs_version_map[rowset_version] = rowset_meta;
+
 
 Review comment:
   empty line

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