mirror of https://github.com/apache/lucene.git
LUCENE-3052: missing sync in private (test only) codec
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1097848 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9f2affb665
commit
a47d4b835b
|
@ -484,7 +484,9 @@ public class TestExternalCodecs extends LuceneTestCase {
|
||||||
public FieldsProducer fieldsProducer(SegmentReadState readState)
|
public FieldsProducer fieldsProducer(SegmentReadState readState)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
|
|
||||||
return state.get(readState.segmentInfo.name);
|
synchronized(state) {
|
||||||
|
return state.get(readState.segmentInfo.name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue