diff --git a/mode/core/src/main/java/org/apache/shardingsphere/mode/manager/context/ConfigurationContextManager.java b/mode/core/src/main/java/org/apache/shardingsphere/mode/manager/context/ConfigurationContextManager.java index 9cb076ccd45649..70663b09348bb6 100644 --- a/mode/core/src/main/java/org/apache/shardingsphere/mode/manager/context/ConfigurationContextManager.java +++ b/mode/core/src/main/java/org/apache/shardingsphere/mode/manager/context/ConfigurationContextManager.java @@ -353,10 +353,14 @@ public synchronized Map createChangedDatabases(f ShardingSphereDatabase changedDatabase = createChangedDatabase(metaDataContexts.get().getMetaData().getDatabase(databaseName).getName(), internalLoadMetaData, metaDataContexts.get().getPersistService(), toBeCreatedDatabaseConfig, metaDataContexts.get().getMetaData().getProps(), instanceContext); Map result = new LinkedHashMap<>(metaDataContexts.get().getMetaData().getDatabases()); - log.error("=====databases=====" + result.keySet()); + if ("empty_rules".equals(databaseName)) { + log.error("=====databases1=====" + changedDatabase.getSchema(databaseName).getTables().keySet()); + } changedDatabase.getSchemas().putAll(newShardingSphereSchemas(changedDatabase)); result.put(databaseName.toLowerCase(), changedDatabase); - log.error("=====databases=====" + result.keySet()); + if ("empty_rules".equals(databaseName)) { + log.error("=====databases2=====" + changedDatabase.getSchema(databaseName).getTables().keySet()); + } return result; }