mirror of https://github.com/apache/lucene.git
LUCENE-1553: fix test-only method addMyself to keep track of more than 1 ConcurrentMergeScheduler created during tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@750405 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cf28799cb0
commit
ebb8c8ec3d
|
@ -353,7 +353,7 @@ public class ConcurrentMergeScheduler extends MergeScheduler {
|
|||
/** 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);
|
||||
|
|
Loading…
Reference in New Issue