提交 b2137b65 authored 作者: Thomas Mueller's avatar Thomas Mueller

NIO storage: the nio: prefix was using memory mapped files instead of FileChannel.

上级 66f5bee1
......@@ -394,8 +394,7 @@ public class FileSystemDisk extends FileSystem {
try {
f = new FileObjectDisk(fileName, mode);
} catch (IOException e2) {
e2.initCause(e);
throw e2;
throw e;
}
}
return f;
......
......@@ -68,10 +68,9 @@ public class FileSystemDiskNio extends FileSystemDisk {
} catch (IOException e) {
freeMemoryAndFinalize();
try {
f = new FileObjectDiskMapped(fileName, mode);
f = open(fileName, mode);
} catch (IOException e2) {
e2.initCause(e);
throw e2;
throw e;
}
}
return f;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论