mirror of https://github.com/apache/lucene.git
Make previous change thread-safe.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@156447 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c33696e120
commit
ff6cb58371
|
@ -82,7 +82,7 @@ final class TermInfosReader {
|
|||
return termEnum;
|
||||
}
|
||||
|
||||
private final void ensureIndexIsRead() throws IOException {
|
||||
private synchronized void ensureIndexIsRead() throws IOException {
|
||||
if (indexTerms != null) // index already read
|
||||
return; // do nothing
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue