From dbdcb0131224dfcf2d31dd5ac8fe8e38b8d93934 Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Sat, 25 Sep 2010 15:47:57 +0000 Subject: [PATCH] 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 --- .../main/java/org/hibernate/stat/ConcurrentStatisticsImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/hibernate/stat/ConcurrentStatisticsImpl.java b/core/src/main/java/org/hibernate/stat/ConcurrentStatisticsImpl.java index fbe912a89c..c18e3e6932 100644 --- a/core/src/main/java/org/hibernate/stat/ConcurrentStatisticsImpl.java +++ b/core/src/main/java/org/hibernate/stat/ConcurrentStatisticsImpl.java @@ -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... }