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

@ -1163,7 +1163,7 @@ int ObResolver::resolve(IsPrepared if_prepared, const ParseNode &parse_tree, ObS
if (OB_SUCC(ret)) {
if (ObStmt::is_write_stmt(stmt->get_stmt_type(), stmt->has_global_variable())
&& !MTL_IS_PRIMARY_TENANT()) {
&& !MTL_TENANT_ROLE_CACHE_IS_PRIMARY_OR_INVALID()) {
ret = OB_STANDBY_READ_ONLY;
TRANS_LOG(WARN, "standby tenant support read only", K(ret), K(stmt));
}