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:
Doron Cohen 2007-12-13 07:26:58 +00:00
parent c3f210db67
commit 73f9e7ebc0
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}