gc_tablet_direct_load in get_rec_scn

This commit is contained in:
Hongqin-Li
2024-02-10 07:13:18 +00:00
committed by ob-robot
parent 308d3967ec
commit ef80c3a89b
5 changed files with 50 additions and 15 deletions

View File

@ -1762,6 +1762,19 @@ int ObDDLUtil::check_schema_version_refreshed(
return ret;
}
bool ObDDLUtil::reach_time_interval(const int64_t i, volatile int64_t &last_time)
{
bool bret = false;
const int64_t old_time = last_time;
const int64_t cur_time = common::ObTimeUtility::fast_current_time();
if (OB_UNLIKELY((i + last_time) < cur_time)
&& old_time == ATOMIC_CAS(&last_time, old_time, cur_time))
{
bret = true;
}
return bret;
}
/****************** ObCheckTabletDataComplementOp *************/
int ObCheckTabletDataComplementOp::check_task_inner_sql_session_status(