change StoredFieldsInts#writeInts offset from 0 to start when data is allEquals

This commit is contained in:
tang donghai 2023-05-01 14:37:30 +08:00
parent 3c163745bb
commit c91e9b34b8

View File

@ -38,7 +38,7 @@ class StoredFieldsInts {
}
if (allEqual) {
out.writeByte((byte) 0);
out.writeVInt(values[0]);
out.writeVInt(values[start]);
} else {
long max = 0;
for (int i = 0; i < count; ++i) {