adapt scn for migration
This commit is contained in:
@ -225,8 +225,8 @@ int ObBackupUtils::check_tablet_minor_sstable_validity_(const storage::ObTabletH
|
||||
ObTablet *tablet = NULL;
|
||||
ObITable *last_table_ptr = NULL;
|
||||
ObTabletID tablet_id;
|
||||
SCN start_scn = SCN::min_scn();
|
||||
SCN clog_checkpoint_scn = SCN::min_scn();
|
||||
palf::SCN start_scn = SCN::min_scn();
|
||||
palf::SCN clog_checkpoint_scn = SCN::min_scn();
|
||||
if (OB_ISNULL(tablet = tablet_handle.get_obj())) {
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
LOG_WARN("invalid tablet handle", K(ret), K(tablet_handle));
|
||||
@ -255,7 +255,7 @@ int ObBackupUtils::check_tablet_minor_sstable_validity_(const storage::ObTabletH
|
||||
LOG_WARN("table ptr not correct", K(ret), KPC(last_table_ptr));
|
||||
} else {
|
||||
const ObITable::TableKey &table_key = last_table_ptr->get_key();
|
||||
if (table_key.get_end_log_ts() != clog_checkpoint_scn.get_val_for_inner_table_field()) {
|
||||
if (table_key.get_end_scn() != clog_checkpoint_scn) {
|
||||
ret = OB_ERR_UNEXPECTED;
|
||||
LOG_ERROR("tablet meta is not valid", K(ret), K(table_key), K(clog_checkpoint_scn));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user