LUCENE-5621: revert: the bug is not mine

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1588742 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2014-04-20 12:09:53 +00:00
parent 07f5817715
commit f548fdc1e9
2 changed files with 1 additions and 4 deletions

View File

@ -383,7 +383,6 @@ public final class DirectPostingsFormat extends PostingsFormat {
final byte[] payloads;
if (hasPayloads) {
ros.flush();
payloads = new byte[(int) ros.getFilePointer()];
ros.writeTo(payloads, 0);
} else {

View File

@ -155,9 +155,7 @@ public class RAMOutputStream extends IndexOutput {
}
/** Forces any buffered output to be written. */
// TODO: remove 'public'. Something bogus is happening between this guy and DirectPF,
// not sure which one (or maybe both?) has the bug.
public void flush() throws IOException {
protected void flush() throws IOException {
setFileLength();
}