From 94b9400e89ba2e661a5046411080d1b44769a5a6 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Sat, 5 Oct 2024 14:51:14 +0200 Subject: Fix a bug in read_exact --- src/common.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/common.rs') diff --git a/src/common.rs b/src/common.rs index 33e99e7..3d31263 100644 --- a/src/common.rs +++ b/src/common.rs @@ -72,15 +72,16 @@ pub enum MemtableEvictPolicy { #[derive(Debug, Clone, Eq, PartialEq)] pub enum WriteDurability { /// Changes are written to an application-level write buffer without flushing to the OS write buffer or syncing to disk. + /// The buffered writer will batch writes to the OS buffer for maximum performance. /// Offers the lowest durability guarantees but is very fast. - AsyncWrite, - /// Changes are written to the OS write buffer but not synced to disk. - /// Offers better durability guarantees than AsyncWrite but is slower. + Async, + /// Changes are written to the OS write buffer but not immediately synced to disk. + /// Offers better durability guarantees than Async but is slower. /// This is generally recommended. Most OSes will sync the write buffer to disk within a few seconds. Flush, - /// Changes are written to the OS write buffer and synced to disk. + /// Changes are written to the OS write buffer and synced to disk immediately. /// Offers the best durability guarantees but is the slowest. - SyncWrite, + FlushSync, } #[derive(Debug, Clone, Ord, PartialOrd, Eq, PartialEq, Hash)] -- cgit v1.3