mirror of https://github.com/apache/lucene.git
Fix TestNRTThreads by explicitely copying the term before running the query.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1670026 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ac0b4c552a
commit
01152b825f
|
@ -380,7 +380,7 @@ public abstract class ThreadedIndexingAndSearchingTestCase extends LuceneTestCas
|
|||
//if (VERBOSE) {
|
||||
//System.out.println(Thread.currentThread().getName() + " now search body:" + term.utf8ToString());
|
||||
//}
|
||||
totHits.addAndGet(runQuery(s, new TermQuery(new Term("body", term))));
|
||||
totHits.addAndGet(runQuery(s, new TermQuery(new Term("body", BytesRef.deepCopyOf(term)))));
|
||||
}
|
||||
}
|
||||
//if (VERBOSE) {
|
||||
|
|
Loading…
Reference in New Issue