use open_with_options_v2 (O_DIRECT) for ephemeral file

Signed-off-by: Yuchen Liang <yuchen@neon.tech>
This commit is contained in:
Yuchen Liang
2024-11-12 01:26:29 +00:00
parent ce7cd36100
commit 20e6a0c8a2

View File

@@ -52,7 +52,7 @@ impl EphemeralFile {
)));
let file = Arc::new(
VirtualFile::open_with_options(
VirtualFile::open_with_options_v2(
&filename,
virtual_file::OpenOptions::new()
.read(true)