This is an automated email from the ASF dual-hosted git repository.
menghaoran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new cc2cea34e02 Fix checkstyle for
RegisterCenterMetaDataContextsInitFactory (#37251)
cc2cea34e02 is described below
commit cc2cea34e0293cffc0fb10a29c9e078f88478d8f
Author: Haoran Meng <[email protected]>
AuthorDate: Tue Dec 2 10:47:14 2025 +0800
Fix checkstyle for RegisterCenterMetaDataContextsInitFactory (#37251)
---
.../factory/init/type/RegisterCenterMetaDataContextsInitFactory.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/mode/core/src/main/java/org/apache/shardingsphere/mode/metadata/factory/init/type/RegisterCenterMetaDataContextsInitFactory.java
b/mode/core/src/main/java/org/apache/shardingsphere/mode/metadata/factory/init/type/RegisterCenterMetaDataContextsInitFactory.java
index 1b7dcf7b263..5915cb5f7d7 100644
---
a/mode/core/src/main/java/org/apache/shardingsphere/mode/metadata/factory/init/type/RegisterCenterMetaDataContextsInitFactory.java
+++
b/mode/core/src/main/java/org/apache/shardingsphere/mode/metadata/factory/init/type/RegisterCenterMetaDataContextsInitFactory.java
@@ -65,7 +65,6 @@ public final class RegisterCenterMetaDataContextsInitFactory
extends MetaDataCon
@Override
public MetaDataContexts create(final ContextManagerBuilderParameter param)
throws SQLException {
Map<String, DatabaseConfiguration> effectiveDatabaseConfigs =
createEffectiveDatabaseConfigurations(getDatabaseNames(param.getDatabaseConfigs()),
param.getDatabaseConfigs());
- Collection<RuleConfiguration> globalRuleConfigs =
persistFacade.getGlobalRuleService().load();
// TODO load global data sources from persist service
Map<String, DataSource> globalDataSources =
param.getGlobalDataSources();
ConfigurationProperties props = new
ConfigurationProperties(persistFacade.getPropsService().load());
@@ -84,7 +83,7 @@ public final class RegisterCenterMetaDataContextsInitFactory
extends MetaDataCon
schema.getAllViews().forEach(targetSchema::putView);
}));
}
- return create(globalRuleConfigs, globalDataSources, databases, props,
persistFacade);
+ return create(persistFacade.getGlobalRuleService().load(),
globalDataSources, databases, props, persistFacade);
}
private Collection<String> getDatabaseNames(final Map<String,
DatabaseConfiguration> databaseConfigs) {