Skip to content

Commit

Permalink
Merge pull request #20173 from Sanne/SchemaManagementIntegration
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi authored Sep 15, 2021
2 parents 6f60959 + 63b3277 commit 72abfe4
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ public void integrate(Metadata metadata, SessionFactoryImplementor sessionFactor

@Override
public void disintegrate(SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry) {
metadataMap.remove(nameCache.get(sessionFactory));
nameCache.remove(sessionFactory);
final String name = nameCache.remove(sessionFactory);
if (name != null) {
metadataMap.remove(name);
}
}

public static void clearDsMap() {
Expand Down

0 comments on commit 72abfe4

Please sign in to comment.