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:
Michael McCandless 2011-04-29 15:42:30 +00:00
parent 9f2affb665
commit a47d4b835b
1 changed files with 3 additions and 1 deletions

View File

@ -484,7 +484,9 @@ public class TestExternalCodecs extends LuceneTestCase {
public FieldsProducer fieldsProducer(SegmentReadState readState)
throws IOException {
return state.get(readState.segmentInfo.name);
synchronized(state) {
return state.get(readState.segmentInfo.name);
}
}
@Override