diff --git a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/ShardingSphereMetaData.java b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/ShardingSphereMetaData.java index 8914271ab839b..228de852c43fb 100644 --- a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/ShardingSphereMetaData.java +++ b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/ShardingSphereMetaData.java @@ -61,7 +61,7 @@ public ShardingSphereMetaData() { public ShardingSphereMetaData(final Map databases, final ResourceMetaData globalResourceMetaData, final RuleMetaData globalRuleMetaData, final ConfigurationProperties props) { - this.databases = new CaseInsensitiveMap<>(Collections.emptyMap(), new ConcurrentHashMap<>(databases)); + this.databases = new CaseInsensitiveMap<>(databases, new ConcurrentHashMap<>()); this.globalResourceMetaData = globalResourceMetaData; this.globalRuleMetaData = globalRuleMetaData; this.props = props;