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