mirror of https://github.com/apache/lucene.git
fix potential thread-safety issue in contrib/benchmark's TrecDocMaker.
(follow-up to http://svn.apache.org/viewvc?view=rev&revision=602475) git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@603846 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c3f210db67
commit
73f9e7ebc0
|
@ -155,7 +155,7 @@ public class TrecDocMaker extends BasicDocMaker {
|
|||
return sb;
|
||||
}
|
||||
|
||||
protected DocData getNextDocData() throws NoMoreDataException, Exception {
|
||||
protected synchronized DocData getNextDocData() throws NoMoreDataException, Exception {
|
||||
if (reader==null) {
|
||||
openNextFile();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue