HHH-11602 - Session close counter statistic not updated when using Hibernate in JPA mode

This commit is contained in:
Andrea Boriero 2017-04-04 14:01:27 +01:00
parent 71c11a8d4d
commit 65f420efec
1 changed files with 4 additions and 5 deletions

View File

@ -415,12 +415,11 @@ public final class SessionImpl
}
}
else {
super.close();
if ( getFactory().getStatistics().isStatisticsEnabled() ) {
getFactory().getStatistics().closeSession();
}
}
if ( getFactory().getStatistics().isStatisticsEnabled() ) {
getFactory().getStatistics().closeSession();
}
}