lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r750405 - /lucene/java/trunk/src/java/org/apache/lucene/index/ConcurrentMergeScheduler.java
Date Thu, 05 Mar 2009 09:54:07 GMT
Author: mikemccand
Date: Thu Mar  5 09:54:07 2009
New Revision: 750405

URL: http://svn.apache.org/viewvc?rev=750405&view=rev
Log:
LUCENE-1553: fix test-only method addMyself to keep track of more than 1 ConcurrentMergeScheduler
created during tests

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/index/ConcurrentMergeScheduler.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/ConcurrentMergeScheduler.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/ConcurrentMergeScheduler.java?rev=750405&r1=750404&r2=750405&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/ConcurrentMergeScheduler.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/ConcurrentMergeScheduler.java Thu Mar
 5 09:54:07 2009
@@ -353,7 +353,7 @@
   /** Used for testing */
   private void addMyself() {
     synchronized(allInstances) {
-      final int size=0;
+      final int size = allInstances.size();
       int upto = 0;
       for(int i=0;i<size;i++) {
         final ConcurrentMergeScheduler other = (ConcurrentMergeScheduler) allInstances.get(i);



Mime
View raw message