[scn] fix failure of mittest after refresh feature scn

This commit is contained in:
obdev
2022-11-28 01:46:42 +00:00
committed by ob-robot
parent 49a02f3304
commit 54b64a7263
1898 changed files with 255804 additions and 280809 deletions

View File

@ -400,10 +400,10 @@ int MockObTxCtx::handle_all()
return mailbox_.handle_all();
}
int MockObTxCtx::get_gts_(int64_t &gts)
int MockObTxCtx::get_gts_(palf::SCN &gts)
{
// TODO(handora.qc): get gts failed
gts = ObTimeUtility::current_time();
gts.convert_for_gts(ObTimeUtility::current_time_ns());
return OB_SUCCESS;
}
@ -413,13 +413,13 @@ int MockObTxCtx::wait_gts_elapse_commit_version_(bool &need_wait)
return OB_SUCCESS;
}
int MockObTxCtx::get_local_max_read_version_(int64_t &local_max_read_version)
int MockObTxCtx::get_local_max_read_version_(palf::SCN &local_max_read_version)
{
local_max_read_version = ObTimeUtility::current_time();
local_max_read_version.convert_for_gts(ObTimeUtility::current_time());
return OB_SUCCESS;
}
int MockObTxCtx::update_local_max_commit_version_(const int64_t &)
int MockObTxCtx::update_local_max_commit_version_(const palf::SCN &)
{
return OB_SUCCESS;
}