From e48422a122894e45aed0ca3ad3d8df9421ae3db1 Mon Sep 17 00:00:00 2001 From: "wanhong.wwh" Date: Wed, 25 May 2022 20:51:07 +0800 Subject: [PATCH] [CP] fix job STATISTIC_PRIMARY_ZONE_ENTITY_COUNT --- src/rootserver/ob_ddl_service.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/rootserver/ob_ddl_service.cpp b/src/rootserver/ob_ddl_service.cpp index 25e39da7c1..17dd4d8936 100755 --- a/src/rootserver/ob_ddl_service.cpp +++ b/src/rootserver/ob_ddl_service.cpp @@ -22386,6 +22386,7 @@ int ObDDLService::get_tenant_primary_zone_entity_count( const uint64_t tenant_id, share::schema::ObSchemaGetterGuard &schema_guard, int64_t &pz_entity_count) { int ret = OB_SUCCESS; + int64_t table_pz_count = 0, db_pz_count = 0, tg_pz_count = 0; common::ObArray database_schemas; common::ObArray table_schemas; common::ObArray tablegroup_schemas; @@ -22410,6 +22411,7 @@ int ObDDLService::get_tenant_primary_zone_entity_count( // go on next } else { ++pz_entity_count; + table_pz_count++; } } // databases @@ -22422,6 +22424,7 @@ int ObDDLService::get_tenant_primary_zone_entity_count( // go on next } else { ++pz_entity_count; + db_pz_count++; } } for (int64_t i = 0; OB_SUCC(ret) && i < tablegroup_schemas.count(); ++i) { @@ -22433,9 +22436,19 @@ int ObDDLService::get_tenant_primary_zone_entity_count( // go on next } else { ++pz_entity_count; + tg_pz_count++; } } } + + LOG_INFO("get tenant primary zone entity count", + K(tenant_id), + K(pz_entity_count), + K(table_pz_count), + K(db_pz_count), + K(tg_pz_count), + KR(ret)); + return ret; } -- GitLab