Skip to content

Apache Lucene open-source search software

LUCENE-2615: forgot to remove the hardwired 1MB buffer

Michael McCandless728ad83af8ac
diff --git a/lucene/contrib/misc/src/java/org/apache/lucene/store/DirectIOLinuxDirectory.java b/lucene/contrib/misc/src/java/org/apache/lucene/store/DirectIOLinuxDirectory.java
index 7b0ed9518dd..cb58063c298 100644
--- a/lucene/contrib/misc/src/java/org/apache/lucene/store/DirectIOLinuxDirectory.java
+++ b/lucene/contrib/misc/src/java/org/apache/lucene/store/DirectIOLinuxDirectory.java
@@ -93,7 +93,6 @@ public class DirectIOLinuxDirectory extends FSDirectory {
public DirectIOLinuxIndexOutput(File path, int bufferSize) throws IOException {
//this.path = path;
- bufferSize = 1024*1024;
FileDescriptor fd = NativePosixUtil.open_direct(path.toString(), false);
fos = new FileOutputStream(fd);
//fos = new FileOutputStream(path);
@@ -236,7 +235,6 @@ public class DirectIOLinuxDirectory extends FSDirectory {
private int bufferPos;
public DirectIOLinuxIndexInput(File path, int bufferSize) throws IOException {
- bufferSize = 1024*1024;
FileDescriptor fd = NativePosixUtil.open_direct(path.toString(), true);
fis = new FileInputStream(fd);
channel = fis.getChannel();