diff --git a/src/rootserver/ob_ddl_service.cpp b/src/rootserver/ob_ddl_service.cpp index 25e39da7c1a17095f84123f844eb5213ed2bd56e..17dd4d89363b1c0c29d6005fdbbf22d69115a541 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; }