fix tenant_role user primary as default

This commit is contained in:
maosy
2023-10-16 09:09:00 +00:00
committed by ob-robot
parent 03bb761572
commit ceaef5c7da
29 changed files with 84 additions and 51 deletions

View File

@ -929,7 +929,7 @@ int ObDDLUtil::ddl_get_tablet(
bool ObDDLUtil::need_remote_write(const int ret_code)
{
return ObTenantRole::PRIMARY_TENANT == MTL_GET_TENANT_ROLE()
return ObTenantRole::PRIMARY_TENANT == MTL_GET_TENANT_ROLE_CACHE()
&& (OB_NOT_MASTER == ret_code
|| OB_NOT_RUNNING == ret_code
|| OB_LS_LOCATION_LEADER_NOT_EXIST == ret_code