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 class ConcurrentStatisticsImpl implements Statistics, StatisticsImplement
|
|||
queryExecutionCount.getAndIncrement();
|
||||
boolean isLongestQuery = false;
|
||||
for ( long old = queryExecutionMaxTime.get();
|
||||
( time > old ) && ( isLongestQuery = !queryExecutionMaxTime.compareAndSet( old, time ) );
|
||||
( isLongestQuery = time > old ) && ( !queryExecutionMaxTime.compareAndSet( old, time ) );
|
||||
old = queryExecutionMaxTime.get() ) {
|
||||
// nothing to do here given the odd loop structure...
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue