fix invalid tenant while scanning plan cache plan stat

This commit is contained in:
obdev 2023-06-08 07:18:04 +00:00 committed by ob-robot
parent 391d7ab6bd
commit 340151ccc9

View File

@ -325,7 +325,8 @@ int ObAllPlanCacheStatI1::get_all_tenant_ids(ObIArray<uint64_t> &tenant_ids)
for (int64_t i = 0; OB_SUCC(ret) && i < tenant_ids_.count(); i++) {
// to keep the save interface
if (common::OB_INVALID_TENANT_ID == tenant_ids_.at(i)) {
if (common::OB_INVALID_TENANT_ID == tenant_ids_.at(i)
|| is_virtual_tenant_id(tenant_ids_.at(i))) {
// skip
} else {
ret = tenant_ids.push_back(tenant_ids_.at(i));