From be67506b49944dba09b89ed9873c4e4397ce15bf Mon Sep 17 00:00:00 2001 From: terrymanu Date: Mon, 27 May 2024 15:15:36 +0800 Subject: [PATCH] Refactor CaseInsensitiveMap on ShardingSphereMetaData.databases --- .../shardingsphere/infra/metadata/ShardingSphereMetaData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;