Skip to content

Apache Lucene open-source search software

LUCENE-3892: add nocommits

Michael McCandlessdbf09d88838f
diff --git a/lucene/core/src/java/org/apache/lucene/codecs/pfor/ForFactory.java b/lucene/core/src/java/org/apache/lucene/codecs/pfor/ForFactory.java
index 9dff2c2f60f..1c636b99fbb 100644
--- a/lucene/core/src/java/org/apache/lucene/codecs/pfor/ForFactory.java
+++ b/lucene/core/src/java/org/apache/lucene/codecs/pfor/ForFactory.java
@@ -120,6 +120,7 @@ public final class ForFactory extends IntStreamFactory {
protected void flushBlock() throws IOException {
final int header = ForUtil.compress(buffer,encodedBuffer);
final int numBytes = ForUtil.getEncodedSize(header);
+ // nocommit writeVInt instead?
out.writeInt(header);
out.writeBytes(encoded, numBytes);
}
diff --git a/lucene/core/src/java/org/apache/lucene/codecs/pfor/PForFactory.java b/lucene/core/src/java/org/apache/lucene/codecs/pfor/PForFactory.java
index dc110b86ec1..aa06f785e9a 100644
--- a/lucene/core/src/java/org/apache/lucene/codecs/pfor/PForFactory.java
+++ b/lucene/core/src/java/org/apache/lucene/codecs/pfor/PForFactory.java
@@ -121,6 +121,7 @@ public final class PForFactory extends IntStreamFactory {
protected void flushBlock() throws IOException {
final int header = PForUtil.compress(buffer,encodedBuffer);
final int numBytes = PForUtil.getEncodedSize(header);
+ // nocommit writeVInt instead?
out.writeInt(header);
out.writeBytes(encoded, numBytes);
}