mirror of https://github.com/apache/lucene.git
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:
parent
07f5817715
commit
f548fdc1e9
|
@ -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 {
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue