Skip to content

Commit

Permalink
Add debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Sep 30, 2023
1 parent d965803 commit 73500cc
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -353,10 +353,14 @@ public synchronized Map<String, ShardingSphereDatabase> createChangedDatabases(f
ShardingSphereDatabase changedDatabase = createChangedDatabase(metaDataContexts.get().getMetaData().getDatabase(databaseName).getName(), internalLoadMetaData,
metaDataContexts.get().getPersistService(), toBeCreatedDatabaseConfig, metaDataContexts.get().getMetaData().getProps(), instanceContext);
Map<String, ShardingSphereDatabase> 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;
}

Expand Down

0 comments on commit 73500cc

Please sign in to comment.