support switchover/failover verify empty shell

This commit is contained in:
obdev
2023-06-26 08:12:29 +00:00
committed by ob-robot
parent 1155218ed2
commit 5d3a888639
6 changed files with 36 additions and 11 deletions

View File

@ -1865,6 +1865,8 @@ int ObSwitchTenantExecutor::execute(ObExecContext &ctx, ObSwitchTenantStmt &stmt
// TODO support specify ALL
if (OB_FAIL(ret)) {
} else if (arg.get_is_verify()) {
//do nothing
} else if (OB_FAIL(OB_PRIMARY_STANDBY_SERVICE.switch_tenant(arg))) {
LOG_WARN("failed to switch_tenant", KR(ret), K(arg));
}