mirror of https://github.com/apache/lucene.git
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:
parent
323afbc399
commit
728ad83af8
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue