fix the bug of last purge scn in creating mlog

This commit is contained in:
obdev
2024-02-08 08:12:59 +00:00
committed by ob-robot
parent 5265eb83c7
commit 7831f30948
3 changed files with 45 additions and 3 deletions

View File

@ -843,9 +843,9 @@ int ObDDLService::add_mlog(
mlog_info.set_tenant_id(tenant_id);
mlog_info.set_mlog_id(mlog_table_id);
mlog_info.set_purge_mode(purge_options.purge_mode_);
mlog_info.set_purge_start(purge_options.start_datetime_expr_.get_timestamp());
mlog_info.set_last_purge_scn(purge_start);
mlog_info.set_last_purge_rows(0);
if (!purge_options.start_datetime_expr_.is_null()) {
mlog_info.set_purge_start(purge_options.start_datetime_expr_.get_timestamp());
}
mlog_info.set_schema_version(mlog_schema.get_schema_version());
if (OB_FAIL(mlog_info.set_purge_next(purge_next))) {
LOG_WARN("fail to set purge next", KR(ret));