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

@ -1328,7 +1328,7 @@ int ObLS::get_ls_info(ObLSVTInfo &ls_info)
} else {
// The readable point of the primary tenant is weak read ts,
// and the readable point of the standby tenant is readable scn
if (MTL_IS_PRIMARY_TENANT()) {
if (MTL_TENANT_ROLE_CACHE_IS_PRIMARY_OR_INVALID()) {
ls_info.weak_read_scn_ = ls_wrs_handler_.get_ls_weak_read_ts();
} else if (OB_FAIL(get_ls_replica_readable_scn(ls_info.weak_read_scn_))) {
TRANS_LOG(WARN, "get ls replica readable scn fail", K(ret), KPC(this));