mirror of
https://github.com/neondatabase/neon.git
synced 2026-07-06 13:40:37 +00:00
use O_DIRECT as preferred
Signed-off-by: Yuchen Liang <yuchen@neon.tech>
This commit is contained in:
@@ -1005,7 +1005,11 @@ pub mod virtual_file {
|
||||
|
||||
impl IoMode {
|
||||
pub const fn preferred() -> Self {
|
||||
Self::Buffered
|
||||
if cfg!(target_os = "linux") {
|
||||
Self::Direct
|
||||
} else {
|
||||
Self::Buffered
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user