provide valid sts getter interface

This commit is contained in:
obdev
2023-02-13 04:17:21 +00:00
committed by ob-robot
parent ce71f6c3d9
commit 80239369a4
17 changed files with 479 additions and 154 deletions

View File

@ -111,9 +111,8 @@ int ObAllTenantInfo::init(
return ret;
}
int ObAllTenantInfo::assign(const ObAllTenantInfo &other)
void ObAllTenantInfo::assign(const ObAllTenantInfo &other)
{
int ret = OB_SUCCESS;
if (this != &other) {
reset();
tenant_id_ = other.tenant_id_;
@ -126,7 +125,7 @@ int ObAllTenantInfo::assign(const ObAllTenantInfo &other)
recovery_until_scn_ = other.recovery_until_scn_;
log_mode_ = other.log_mode_;
}
return ret;
return ;
}
void ObAllTenantInfo::reset()
@ -147,11 +146,8 @@ OB_SERIALIZE_MEMBER(ObAllTenantInfo, tenant_id_, tenant_role_,
ObAllTenantInfo& ObAllTenantInfo::operator= (const ObAllTenantInfo &other)
{
int ret = OB_SUCCESS;
if (this != &other) {
if (OB_FAIL(assign(other))) {
LOG_ERROR("failed to assign", KR(ret), K(other));
}
(void)assign(other);
}
return *this;
}