@@ -234,10 +234,11 @@ OLAPStatus OlapSnapshotConverter::convert_to_rowset_meta(const PDelta& delta,
234
234
*delete_condition = delta.delete_condition ();
235
235
}
236
236
rowset_meta_pb->set_creation_time (delta.creation_time ());
237
- VLOG ( 3 ) << " convert pending delta start_version = " << delta.start_version ()
237
+ LOG (INFO ) << " convert visible delta start_version = " << delta.start_version ()
238
238
<< " end_version = " << delta.end_version ()
239
239
<< " version_hash = " << delta.version_hash ()
240
- << " to rowset id = " << rowset_id;
240
+ << " to rowset id = " << rowset_id
241
+ << " tablet_id = " << tablet_id;
241
242
return OLAP_SUCCESS;
242
243
}
243
244
@@ -287,7 +288,7 @@ OLAPStatus OlapSnapshotConverter::convert_to_rowset_meta(const PPendingDelta& pe
287
288
*delete_condition = pending_delta.delete_condition ();
288
289
}
289
290
rowset_meta_pb->set_creation_time (pending_delta.creation_time ());
290
- VLOG ( 3 ) << " convert pending delta txn id = " << pending_delta.transaction_id ()
291
+ LOG (INFO ) << " convert pending delta txn id = " << pending_delta.transaction_id ()
291
292
<< " tablet_id = " << tablet_id
292
293
<< " schema_hash = " << schema_hash
293
294
<< " to rowset id = " << rowset_id;
@@ -403,8 +404,8 @@ OLAPStatus OlapSnapshotConverter::to_new_snapshot(const OLAPHeaderMessage& olap_
403
404
// convert visible pdelta file to rowsets
404
405
for (auto & visible_rowset : tablet_meta_pb->rs_metas ()) {
405
406
RowsetMetaSharedPtr alpha_rowset_meta (new AlphaRowsetMeta ());
406
- alpha_rowset_meta->set_tablet_uid (tablet_meta_pb->tablet_uid ());
407
407
alpha_rowset_meta->init_from_pb (visible_rowset);
408
+ alpha_rowset_meta->set_tablet_uid (tablet_meta_pb->tablet_uid ());
408
409
AlphaRowset rowset (&tablet_schema, new_data_path_prefix, &data_dir, alpha_rowset_meta);
409
410
RETURN_NOT_OK (rowset.init ());
410
411
std::vector<std::string> success_files;
@@ -415,8 +416,8 @@ OLAPStatus OlapSnapshotConverter::to_new_snapshot(const OLAPHeaderMessage& olap_
415
416
// convert inc delta file to rowsets
416
417
for (auto & inc_rowset : tablet_meta_pb->inc_rs_metas ()) {
417
418
RowsetMetaSharedPtr alpha_rowset_meta (new AlphaRowsetMeta ());
418
- alpha_rowset_meta->set_tablet_uid (tablet_meta_pb->tablet_uid ());
419
419
alpha_rowset_meta->init_from_pb (inc_rowset);
420
+ alpha_rowset_meta->set_tablet_uid (tablet_meta_pb->tablet_uid ());
420
421
AlphaRowset rowset (&tablet_schema, new_data_path_prefix, &data_dir, alpha_rowset_meta);
421
422
RETURN_NOT_OK (rowset.init ());
422
423
std::vector<std::string> success_files;
@@ -429,11 +430,11 @@ OLAPStatus OlapSnapshotConverter::to_new_snapshot(const OLAPHeaderMessage& olap_
429
430
RETURN_NOT_OK (rowset.convert_from_old_files (inc_data_path, &success_files));
430
431
_modify_old_segment_group_id (const_cast <RowsetMetaPB&>(inc_rowset));
431
432
}
432
-
433
+
433
434
for (auto it = pending_rowsets->begin (); it != pending_rowsets->end (); ++it) {
434
435
RowsetMetaSharedPtr alpha_rowset_meta (new AlphaRowsetMeta ());
435
- alpha_rowset_meta->set_tablet_uid (tablet_meta_pb->tablet_uid ());
436
436
alpha_rowset_meta->init_from_pb (*it);
437
+ alpha_rowset_meta->set_tablet_uid (tablet_meta_pb->tablet_uid ());
437
438
AlphaRowset rowset (&tablet_schema, new_data_path_prefix, &data_dir, alpha_rowset_meta);
438
439
RETURN_NOT_OK (rowset.init ());
439
440
std::vector<std::string> success_files;
0 commit comments