diff --git a/infra/reachability-metadata/src/main/resources/META-INF/native-image/org.apache.shardingsphere/generated-reachability-metadata/reflect-config.json b/infra/reachability-metadata/src/main/resources/META-INF/native-image/org.apache.shardingsphere/generated-reachability-metadata/reflect-config.json index 7fc869d9614a6..756544e01c04c 100644 --- a/infra/reachability-metadata/src/main/resources/META-INF/native-image/org.apache.shardingsphere/generated-reachability-metadata/reflect-config.json +++ b/infra/reachability-metadata/src/main/resources/META-INF/native-image/org.apache.shardingsphere/generated-reachability-metadata/reflect-config.json @@ -1711,11 +1711,11 @@ }, { "condition":{"typeReachable":"org.apache.shardingsphere.proxy.initializer.BootstrapInitializer"}, - "name":"org.apache.shardingsphere.infra.metadata.statistics.builder.dialect.MySQLShardingSphereStatisticsBuilder" + "name":"org.apache.shardingsphere.infra.metadata.statistics.builder.dialect.MySQLStatisticsAppender" }, { "condition":{"typeReachable":"org.apache.shardingsphere.proxy.initializer.BootstrapInitializer"}, - "name":"org.apache.shardingsphere.infra.metadata.statistics.builder.dialect.PostgreSQLShardingSphereStatisticsBuilder" + "name":"org.apache.shardingsphere.infra.metadata.statistics.builder.dialect.PostgreSQLStatisticsAppender" }, { "condition":{"typeReachable":"org.apache.shardingsphere.infra.parser.cache.SQLStatementCacheBuilder"}, diff --git a/mode/core/src/main/java/org/apache/shardingsphere/mode/metadata/ShardingSphereStatisticsFactory.java b/mode/core/src/main/java/org/apache/shardingsphere/mode/metadata/ShardingSphereStatisticsFactory.java index 6ab5f32b39334..970bf73ad4c08 100644 --- a/mode/core/src/main/java/org/apache/shardingsphere/mode/metadata/ShardingSphereStatisticsFactory.java +++ b/mode/core/src/main/java/org/apache/shardingsphere/mode/metadata/ShardingSphereStatisticsFactory.java @@ -62,12 +62,12 @@ public static ShardingSphereStatistics create(final MetaDataPersistService persi return create(dialectStatisticsAppender.get(), unloadedDatabases, loadedStatistics); } - private static ShardingSphereStatistics create(final DialectStatisticsAppender statisticsBuilder, + private static ShardingSphereStatistics create(final DialectStatisticsAppender dialectStatisticsAppender, final Collection unloadedDatabases, final ShardingSphereStatistics loadedStatistics) { ShardingSphereStatistics result = new ShardingSphereStatistics(); for (ShardingSphereDatabase each : unloadedDatabases) { ShardingSphereDatabaseData databaseData = new ShardingSphereDefaultStatisticsBuilder().build(each); - statisticsBuilder.append(databaseData, each); + dialectStatisticsAppender.append(databaseData, each); if (!databaseData.getSchemaData().isEmpty()) { result.putDatabase(each.getName(), databaseData); }