add DocValuesProducer to the Set once for all fields

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1590659 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shai Erera 2014-04-28 14:40:07 +00:00
parent 6bc788b1a0
commit 5c2e9e8acf
2 changed files with 2 additions and 2 deletions

View File

@ -484,7 +484,7 @@ class ReadersAndUpdates {
success = true;
} finally {
if (!success) {
// Advance only the nextWriteDocValuesGen so that a 2nd
// Advance only the nextWriteFieldInfosGen so that a 2nd
// attempt to write will write to a new file
info.advanceNextWriteFieldInfosGen();

View File

@ -189,8 +189,8 @@ public final class SegmentReader extends AtomicReader {
DocValuesProducer dvp = segDocValues.getDocValuesProducer(gen, si, IOContext.READ, dir, dvFormat, infos);
for (FieldInfo fi : infos) {
dvProducersByField.put(fi.name, dvp);
dvProducers.add(dvp);
}
dvProducers.add(dvp);
}
dvGens.addAll(genInfos.keySet());