Skip to content

Commit

Permalink
fix code error
Browse files Browse the repository at this point in the history
  • Loading branch information
maosy authored and junye committed Nov 10, 2023
1 parent 7cb0fb4 commit 5c6b8e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/share/rc/ob_tenant_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,10 @@ template<class T> struct Identity {};

void set_tenant_role(const share::ObTenantRole::Role tenant_role_value)
{
if (get_tenant_role() != tenant_role_value) {
SHARE_LOG(INFO, "set tenant role", K(tenant_role_value), K(tenant_role_value_));
}
(void)ATOMIC_STORE(&tenant_role_value_, tenant_role_value);
return ;
}

share::ObTenantRole::Role get_tenant_role() const
Expand All @@ -522,7 +524,7 @@ template<class T> struct Identity {};
{
share::ObTenantRole::Role tenant_role = get_tenant_role();
return share::is_primary_tenant(tenant_role)
or share::is_invalid_tenant(tenant_role);
|| share::is_invalid_tenant(tenant_role);
}

bool is_restore_tenant()
Expand Down

0 comments on commit 5c6b8e6

Please sign in to comment.