lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r627700 - /lucene/java/trunk/src/test/org/apache/lucene/search/TestTimeLimitedCollector.java
Date Thu, 14 Feb 2008 10:36:33 GMT
Author: mikemccand
Date: Thu Feb 14 02:36:31 2008
New Revision: 627700

URL: http://svn.apache.org/viewvc?rev=627700&view=rev
Log:
LUCENE-997: add missing synchronization in unit test

Modified:
    lucene/java/trunk/src/test/org/apache/lucene/search/TestTimeLimitedCollector.java

Modified: lucene/java/trunk/src/test/org/apache/lucene/search/TestTimeLimitedCollector.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/search/TestTimeLimitedCollector.java?rev=627700&r1=627699&r2=627700&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/search/TestTimeLimitedCollector.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/search/TestTimeLimitedCollector.java Thu
Feb 14 02:36:31 2008
@@ -232,7 +232,9 @@
             } else {
               doTestSearch();
             }
-            success.set(num);
+            synchronized(success) {
+              success.set(num);
+            }
           }
       };
     }



Mime
View raw message