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:
Steve Ebersole 2010-09-25 15:47:57 +00:00
parent 1fccf2a04e
commit dbdcb01312
1 changed files with 1 additions and 1 deletions

View File

@ -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...
}