Skip freeze if no tablet need fast freeze
This commit is contained in:
parent
38f6ef5b45
commit
b9e0726dfe
@ -1331,7 +1331,9 @@ int ObTenantTabletScheduler::schedule_ls_minor_merge(
|
||||
|
||||
const bool is_sync = true;
|
||||
start_time_us = ObClockGenerator::getClock();
|
||||
if (OB_TMP_FAIL(ls.tablet_freeze(checkpoint::INVALID_TRACE_ID, need_fast_freeze_tablets, is_sync))) {
|
||||
if (need_fast_freeze_tablets.empty()) {
|
||||
// empty array. do not need freeze
|
||||
} else if (OB_TMP_FAIL(ls.tablet_freeze(checkpoint::INVALID_TRACE_ID, need_fast_freeze_tablets, is_sync))) {
|
||||
LOG_WARN("failt to batch freeze tablet", KR(tmp_ret), K(ls_id), K(need_fast_freeze_tablets));
|
||||
} else {
|
||||
LOG_INFO("fast freeze by batch_tablet_freeze finish",
|
||||
|
@ -639,9 +639,6 @@ int ObDDLIncStartReplayExecutor::init(
|
||||
}
|
||||
|
||||
struct SyncTabletFreezeHelper {
|
||||
ObLS *ls_;
|
||||
const ObTabletID &tablet_id_;
|
||||
const ObTabletID &lob_meta_tablet_id_;
|
||||
SyncTabletFreezeHelper(ObLS *ls, const ObTabletID &tablet_id, const ObTabletID &lob_meta_tablet_id)
|
||||
: ls_(ls), tablet_id_(tablet_id), lob_meta_tablet_id_(lob_meta_tablet_id) {}
|
||||
int operator()()
|
||||
@ -667,6 +664,10 @@ struct SyncTabletFreezeHelper {
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
ObLS *ls_;
|
||||
const ObTabletID &tablet_id_;
|
||||
const ObTabletID &lob_meta_tablet_id_;
|
||||
};
|
||||
|
||||
int ObDDLIncStartReplayExecutor::do_replay_(ObTabletHandle &tablet_handle)
|
||||
|
Loading…
x
Reference in New Issue
Block a user