Skip to content

Commit

Permalink
Refactor ShardingSphereMetaData
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Sep 24, 2023
1 parent 60610a2 commit c0605cf
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ public void addDatabase(final String databaseName, final DatabaseType protocolTy
* @param databaseName database name
*/
public void dropDatabase(final String databaseName) {
ShardingSphereDatabase toBeRemovedDatabase = databases.remove(databaseName.toLowerCase());
closeResources(toBeRemovedDatabase);
closeResources(databases.remove(databaseName.toLowerCase()));
}

private void closeResources(final ShardingSphereDatabase database) {
Expand Down

0 comments on commit c0605cf

Please sign in to comment.