Pierre
08/20/2025, 9:09 AMReadOptions
rust
/// Describes the durability of data based on the medium (e.g. in-memory, object storags)
/// that the data is currently stored in. Currently this is used to define a
/// durability filter for data served by a read.
#[non_exhaustive]
#[derive(Clone, Default, Debug, Copy)]
pub enum DurabilityLevel {
/// Includes only data currently stored durably in object storage.
#[default]
Remote,
/// Includes data with level Remote and data currently only stored in-memory awaiting flush
/// to object storage.
Memory,
}
Pretty sure that even with Default you get read after write whatever the state of the object store? 🤔 Or am I missing something?almog
08/20/2025, 2:24 PMDefault?Pierre
08/20/2025, 3:19 PMPierre
08/20/2025, 3:19 PMalmog
08/20/2025, 4:22 PMPierre
08/20/2025, 4:23 PMPierre
08/20/2025, 4:24 PMPierre
08/20/2025, 4:25 PMalmog
08/20/2025, 4:25 PMimpl Default for ReadOptions {
fn default() -> Self {
Self {
durability_filter: DurabilityLevel::Memory,
dirty: false,
}
}
}
cc @flaneur233almog
08/20/2025, 4:26 PMPierre
08/20/2025, 4:27 PMPierre
08/20/2025, 4:28 PMPierre
08/20/2025, 4:28 PMPierre
08/20/2025, 4:29 PMalmog
08/20/2025, 4:29 PMalmog
08/20/2025, 4:30 PMPierre
08/20/2025, 4:35 PMPierre
08/20/2025, 4:35 PMPierre
08/20/2025, 4:35 PMPierre
08/20/2025, 4:36 PMPierre
08/20/2025, 4:37 PMalmog
08/20/2025, 4:38 PMPierre
08/20/2025, 4:39 PMPierre
08/20/2025, 4:39 PMPierre
08/20/2025, 4:40 PMPierre
08/20/2025, 4:40 PMPierre
08/20/2025, 4:43 PMPierre
08/20/2025, 4:51 PMPierre
08/20/2025, 4:51 PMalmog
08/20/2025, 5:24 PMPierre
08/20/2025, 6:23 PMPierre
08/20/2025, 6:24 PMcriccomini
08/20/2025, 7:09 PMcriccomini
08/20/2025, 7:10 PMPierre
08/20/2025, 7:12 PMcriccomini
08/20/2025, 7:17 PMPierre
08/20/2025, 7:17 PMcriccomini
08/20/2025, 7:18 PMcriccomini
08/20/2025, 7:42 PMalmog
08/20/2025, 7:42 PMPierre
08/20/2025, 7:46 PMflaneur233
08/21/2025, 1:46 PM