LUCENE-1811: fix thread safety bug in testcase

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@804474 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2009-08-15 14:06:19 +00:00
parent 316ce42d99
commit 90c8ef28c8
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@
<property name="Name" value="Lucene"/>
<property name="dev.version" value="2.9-dev"/>
<property name="version" value="${dev.version}"/>
<property name="compatibility.tag" value="lucene_2_4_back_compat_tests_20090812"/>
<property name="compatibility.tag" value="lucene_2_4_back_compat_tests_20090815"/>
<property name="spec.version" value="${version}"/>
<property name="year" value="2000-${current.year}"/>
<property name="final.name" value="lucene-${name}-${version}"/>

View File

@ -702,7 +702,7 @@ public class TestIndexReaderReopen extends LuceneTestCase {
modifier.close();
} else if (i % 3 == 1) {
IndexReader modifier = IndexReader.open(dir);
modifier.deleteDocument(i);
modifier.deleteDocument(i % modifier.maxDoc());
modifier.close();
} else {
IndexWriter modifier = new IndexWriter(dir, new StandardAnalyzer(), IndexWriter.MaxFieldLength.LIMITED);