mirror of https://github.com/apache/lucene.git
remove synchronized from fakeNorms (private & always called within sync context)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@329523 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9713d6c30e
commit
07d7d0701f
|
@ -153,7 +153,7 @@ public class MultiReader extends IndexReader {
|
||||||
}
|
}
|
||||||
|
|
||||||
private byte[] ones;
|
private byte[] ones;
|
||||||
private synchronized byte[] fakeNorms() {
|
private byte[] fakeNorms() {
|
||||||
if (ones==null) ones=SegmentReader.createFakeNorms(maxDoc());
|
if (ones==null) ones=SegmentReader.createFakeNorms(maxDoc());
|
||||||
return ones;
|
return ones;
|
||||||
}
|
}
|
||||||
|
|
|
@ -450,7 +450,7 @@ class SegmentReader extends IndexReader {
|
||||||
}
|
}
|
||||||
|
|
||||||
private byte[] ones;
|
private byte[] ones;
|
||||||
private synchronized byte[] fakeNorms() {
|
private byte[] fakeNorms() {
|
||||||
if (ones==null) ones=createFakeNorms(maxDoc());
|
if (ones==null) ones=createFakeNorms(maxDoc());
|
||||||
return ones;
|
return ones;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue