HHH-11602 - Session close counter statistic not updated when using Hibernate in JPA mode
This commit is contained in:
parent
71c11a8d4d
commit
65f420efec
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue