update get cg sstable wrapper
This commit is contained in:
@ -590,6 +590,8 @@ int ObCOSSTableV2::get_cg_sstable(
|
|||||||
false/*load_co_sstable*/,
|
false/*load_co_sstable*/,
|
||||||
cg_wrapper.meta_handle_))) {
|
cg_wrapper.meta_handle_))) {
|
||||||
LOG_WARN("failed to load sstable", K(ret), K(cg_wrapper));
|
LOG_WARN("failed to load sstable", K(ret), K(cg_wrapper));
|
||||||
|
} else if (OB_FAIL(cg_wrapper.meta_handle_.get_sstable(cg_wrapper.sstable_))) { // should update cg sstable ptr in wrapper after load full cg sstable
|
||||||
|
LOG_WARN("failed to get sstable from meta handle", K(ret), K(cg_idx), K(cg_wrapper));
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4926,9 +4926,9 @@ int ObTablet::get_kept_snapshot_info(
|
|||||||
// snapshot info should smaller than snapshot on tablet
|
// snapshot info should smaller than snapshot on tablet
|
||||||
snapshot_info.update_by_smaller_snapshot(ObStorageSnapshotInfo::SNAPSHOT_ON_TABLET, get_snapshot_version());
|
snapshot_info.update_by_smaller_snapshot(ObStorageSnapshotInfo::SNAPSHOT_ON_TABLET, get_snapshot_version());
|
||||||
|
|
||||||
const int64_t current_time = common::ObTimeUtility::fast_current_time() * 1000; // needs ns here.
|
const int64_t current_time = common::ObTimeUtility::fast_current_time();
|
||||||
if (current_time - snapshot_info.snapshot_ > 120 * 60 * 1000 * 1000L /*2 hour*/) {
|
if (current_time - (snapshot_info.snapshot_ / 1000 /*use microsecond here*/) > 2_hour) {
|
||||||
if (REACH_TENANT_TIME_INTERVAL(10 * 1000 * 1000L /*10s*/)) {
|
if (REACH_TENANT_TIME_INTERVAL(10_s)) {
|
||||||
LOG_INFO("tablet multi version start not advance for a long time", K(ret),
|
LOG_INFO("tablet multi version start not advance for a long time", K(ret),
|
||||||
"ls_id", get_tablet_meta().ls_id_, K(tablet_id),
|
"ls_id", get_tablet_meta().ls_id_, K(tablet_id),
|
||||||
K(snapshot_info), K(old_min_reserved_snapshot), K(min_medium_snapshot),
|
K(snapshot_info), K(old_min_reserved_snapshot), K(min_medium_snapshot),
|
||||||
|
|||||||
Reference in New Issue
Block a user