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

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@988478 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2010-08-24 10:56:15 +00:00
parent 323afbc399
commit 728ad83af8
1 changed files with 0 additions and 2 deletions

View File

@ -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();