fix switch virtual tenant bug

This commit is contained in:
zzg19950727
2023-08-30 08:14:34 +00:00
committed by ob-robot
parent 0528277691
commit 91d94e525b

View File

@ -505,6 +505,7 @@ int ObAllVirtualSqlPlan::dump_all_tenant_plans()
int ObAllVirtualSqlPlan::dump_tenant_plans(int64_t tenant_id)
{
int ret = OB_SUCCESS;
if (!is_virtual_tenant_id(tenant_id)) {
DumpAllPlan dump_plan;
dump_plan.tenant_id_ = tenant_id;
dump_plan.plan_ids_ = &plan_ids_;
@ -523,6 +524,7 @@ int ObAllVirtualSqlPlan::dump_tenant_plans(int64_t tenant_id)
if (OB_OP_NOT_ALLOW == ret) {
ret = OB_SUCCESS;
}
}
return ret;
}