mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-13 14:44:48 +00:00
HHH-5591 - ConcurrentStatisticsImpl#queryExecuted() does not update queryExecutionMaxTimeQueryString
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@20706 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
1fccf2a04e
commit
dbdcb01312
@ -320,7 +320,7 @@ public void queryExecuted(String hql, int rows, long time) {
|
|||||||
queryExecutionCount.getAndIncrement();
|
queryExecutionCount.getAndIncrement();
|
||||||
boolean isLongestQuery = false;
|
boolean isLongestQuery = false;
|
||||||
for ( long old = queryExecutionMaxTime.get();
|
for ( long old = queryExecutionMaxTime.get();
|
||||||
( time > old ) && ( isLongestQuery = !queryExecutionMaxTime.compareAndSet( old, time ) );
|
( isLongestQuery = time > old ) && ( !queryExecutionMaxTime.compareAndSet( old, time ) );
|
||||||
old = queryExecutionMaxTime.get() ) {
|
old = queryExecutionMaxTime.get() ) {
|
||||||
// nothing to do here given the odd loop structure...
|
// nothing to do here given the odd loop structure...
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user