This commit is contained in:
easyice 2023-10-24 10:41:06 +08:00
parent 8fdbce04f4
commit b58e9d77d1
1 changed files with 5 additions and 5 deletions

View File

@ -60,7 +60,6 @@ public abstract class PointsWriter implements Closeable {
PointValues values = pointsReader.getValues(fieldInfo.name); PointValues values = pointsReader.getValues(fieldInfo.name);
if (values != null) { if (values != null) {
maxPointCount += values.size(); maxPointCount += values.size();
}
if (mergeState.liveDocs[i] != null) { if (mergeState.liveDocs[i] != null) {
totDocCount = BKDWriter.UNKNOWN_DOC_COUNT; totDocCount = BKDWriter.UNKNOWN_DOC_COUNT;
} else if (totDocCount != BKDWriter.UNKNOWN_DOC_COUNT) { } else if (totDocCount != BKDWriter.UNKNOWN_DOC_COUNT) {
@ -69,6 +68,7 @@ public abstract class PointsWriter implements Closeable {
} }
} }
} }
}
final long finalMaxPointCount = maxPointCount; final long finalMaxPointCount = maxPointCount;
docCount = totDocCount; docCount = totDocCount;
writeField( writeField(