Skip to content

Commit

Permalink
Rename ShardingSphereMetaData.cleanResources (#30212)
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu authored Feb 20, 2024
1 parent b8d19a2 commit 8fdfa1f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ public void addDatabase(final String databaseName, final DatabaseType protocolTy
* @param databaseName database name
*/
public void dropDatabase(final String databaseName) {
closeResources(databases.remove(databaseName.toLowerCase()));
cleanResources(databases.remove(databaseName.toLowerCase()));
}

private void closeResources(final ShardingSphereDatabase database) {
private void cleanResources(final ShardingSphereDatabase database) {
String databaseName = database.getName();
globalRuleMetaData.findRules(ResourceHeldRule.class).forEach(each -> each.closeStaleResource(databaseName));
database.getRuleMetaData().findRules(ResourceHeldRule.class).forEach(each -> each.closeStaleResource(databaseName));
Expand Down

0 comments on commit 8fdfa1f

Please sign in to comment.