support display the accurate min_restore_timestamp
This commit is contained in:
@ -88,8 +88,26 @@ bool ObExternTenantLocalityInfoDesc::is_valid() const
|
||||
&& !tenant_name_.is_empty()
|
||||
&& !cluster_name_.is_empty()
|
||||
&& !locality_.is_empty()
|
||||
&& !primary_zone_.is_empty()
|
||||
&& !sys_time_zone_.is_empty();
|
||||
&& !primary_zone_.is_empty();
|
||||
}
|
||||
|
||||
int ObExternTenantLocalityInfoDesc::assign(const ObExternTenantLocalityInfoDesc &that)
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
if (OB_FAIL(sys_time_zone_wrap_.deep_copy(that.sys_time_zone_wrap_))) {
|
||||
LOG_WARN("failed to deep copy", K(ret));
|
||||
} else {
|
||||
tenant_id_ = that.tenant_id_;
|
||||
backup_set_id_ = that.backup_set_id_;
|
||||
cluster_id_ = that.cluster_id_;
|
||||
compat_mode_ = that.compat_mode_;
|
||||
tenant_name_ = that.tenant_name_;
|
||||
cluster_name_ = that.cluster_name_;
|
||||
locality_ = that.locality_;
|
||||
primary_zone_ = that.primary_zone_;
|
||||
sys_time_zone_ = that.sys_time_zone_;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@ -140,12 +140,14 @@ public:
|
||||
cluster_name_(),
|
||||
locality_(),
|
||||
primary_zone_(),
|
||||
sys_time_zone_() {}
|
||||
sys_time_zone_(),
|
||||
sys_time_zone_wrap_() {}
|
||||
virtual ~ObExternTenantLocalityInfoDesc() {}
|
||||
|
||||
int assign(const ObExternTenantLocalityInfoDesc &that);
|
||||
bool is_valid() const override;
|
||||
INHERIT_TO_STRING_KV("ObExternBackupDataDesc", ObExternBackupDataDesc, K_(tenant_id), K_(backup_set_id), K_(cluster_id),
|
||||
K_(compat_mode), K_(tenant_name), K_(cluster_name), K_(locality), K_(primary_zone), K_(sys_time_zone));
|
||||
K_(compat_mode), K_(tenant_name), K_(cluster_name), K_(locality), K_(primary_zone), K_(sys_time_zone),
|
||||
K_(sys_time_zone_wrap));
|
||||
public:
|
||||
uint64_t tenant_id_;
|
||||
int64_t backup_set_id_;
|
||||
@ -156,6 +158,7 @@ public:
|
||||
Locality locality_;
|
||||
PrimaryZone primary_zone_;
|
||||
TimeZone sys_time_zone_;
|
||||
ObTimeZoneInfoWrap sys_time_zone_wrap_;
|
||||
};
|
||||
|
||||
struct ObExternBackupSetInfoDesc final : public ObExternBackupDataDesc
|
||||
|
||||
Reference in New Issue
Block a user