mirror of https://github.com/apache/lucene.git
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:
parent
6bc788b1a0
commit
5c2e9e8acf
|
@ -484,7 +484,7 @@ class ReadersAndUpdates {
|
||||||
success = true;
|
success = true;
|
||||||
} finally {
|
} finally {
|
||||||
if (!success) {
|
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
|
// attempt to write will write to a new file
|
||||||
info.advanceNextWriteFieldInfosGen();
|
info.advanceNextWriteFieldInfosGen();
|
||||||
|
|
||||||
|
|
|
@ -189,8 +189,8 @@ public final class SegmentReader extends AtomicReader {
|
||||||
DocValuesProducer dvp = segDocValues.getDocValuesProducer(gen, si, IOContext.READ, dir, dvFormat, infos);
|
DocValuesProducer dvp = segDocValues.getDocValuesProducer(gen, si, IOContext.READ, dir, dvFormat, infos);
|
||||||
for (FieldInfo fi : infos) {
|
for (FieldInfo fi : infos) {
|
||||||
dvProducersByField.put(fi.name, dvp);
|
dvProducersByField.put(fi.name, dvp);
|
||||||
dvProducers.add(dvp);
|
|
||||||
}
|
}
|
||||||
|
dvProducers.add(dvp);
|
||||||
}
|
}
|
||||||
|
|
||||||
dvGens.addAll(genInfos.keySet());
|
dvGens.addAll(genInfos.keySet());
|
||||||
|
|
Loading…
Reference in New Issue