diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2024-10-05 14:51:14 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2024-10-05 15:06:46 +0200 |
| commit | 94b9400e89ba2e661a5046411080d1b44769a5a6 (patch) | |
| tree | c33f2bc0005c844a0e18f71c586ea3ef3ac5eade /src/common.rs | |
| parent | 9f59bf5c621d36fb956ea8a8602b0c37ceaadfe6 (diff) | |
Fix a bug in read_exact
Diffstat (limited to 'src/common.rs')
| -rw-r--r-- | src/common.rs | 11 |
1 files changed, 6 insertions, 5 deletions
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)] |
