We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ea0484 commit e919019Copy full SHA for e919019
hibernate-core/src/main/java/org/hibernate/stat/internal/StatisticsImpl.java
@@ -122,7 +122,7 @@ public StatisticsImpl(SessionFactoryImplementor sessionFactory) {
122
Statistics.DEFAULT_QUERY_STATISTICS_MAX_SIZE,
123
20
124
);
125
- clear();
+ resetStartTime();
126
metamodel = sessionFactory.getMetamodel();
127
cache = sessionFactory.getCache();
128
cacheRegionPrefix = sessionFactoryOptions.getCacheRegionPrefix();
@@ -192,6 +192,10 @@ public void clear() {
192
queryPlanCacheHitCount.reset();
193
queryPlanCacheMissCount.reset();
194
195
196
+ }
197
+
198
+ private void resetStartTime() {
199
startTime = System.currentTimeMillis();
200
}
201
0 commit comments