pub struct CheckpointPagedLog<R, D> { /* private fields */ }Expand description
Optional atomic journal replacement over three exclusive device values. Root data is unused; its two metadata slots select one complete page bank. Bank identities bind each reuse to a distinct monotone root epoch. Neither extraction nor destruction flushes pending records. A failed I/O fences this owner; reopen all devices to discover its actual durable state. Destruction drops both banks before the root, following device destructors.
Implementations§
Source§impl<R: PageDevice, D: PageDevice> CheckpointPagedLog<R, D>
impl<R: PageDevice, D: PageDevice> CheckpointPagedLog<R, D>
Source§impl<R: PageDevice, D: PageDevice> CheckpointPagedLog<R, D>
impl<R: PageDevice, D: PageDevice> CheckpointPagedLog<R, D>
Sourcepub fn inspect(
root: &mut R,
banks: &mut [D; 2],
max_pages: u64,
) -> Result<Vec<String>, LinkError>
pub fn inspect( root: &mut R, banks: &mut [D; 2], max_pages: u64, ) -> Result<Vec<String>, LinkError>
Read the complete selected prefix without initialization, truncation, identity allocation or repair completion. Devices remain borrowed. Checked mirror reads may stage volatile repairs: discard those wrappers if higher-level semantic validation fails. Inspecting does not close any device or change the existing opening constructors’ recovery behavior.
Trait Implementations§
Source§impl<R: PageDevice, D: PageDevice> ReplaceableTransitionLogStore for CheckpointPagedLog<R, D>
impl<R: PageDevice, D: PageDevice> ReplaceableTransitionLogStore for CheckpointPagedLog<R, D>
Source§fn replace_log_entries(&mut self, entries: &[String]) -> Result<bool, LinkError>
fn replace_log_entries(&mut self, entries: &[String]) -> Result<bool, LinkError>
Source§fn supports_replacement(&self) -> bool
fn supports_replacement(&self) -> bool
Source§impl<R: PageDevice, D: PageDevice> TransitionLogStore for CheckpointPagedLog<R, D>
impl<R: PageDevice, D: PageDevice> TransitionLogStore for CheckpointPagedLog<R, D>
Source§fn supports_durable_flush(&self) -> bool
fn supports_durable_flush(&self) -> bool
Source§fn append_log_entry(&mut self, entry: &str) -> Result<(), LinkError>
fn append_log_entry(&mut self, entry: &str) -> Result<(), LinkError>
Source§fn read_log_entries(&mut self) -> Result<Vec<String>, LinkError>
fn read_log_entries(&mut self) -> Result<Vec<String>, LinkError>
Source§fn supports_compaction(&self) -> bool
fn supports_compaction(&self) -> bool
compact_log_entries can rewrite
the durable journal. Retention uses it to bound the journal on disk;
logs without it keep every entry, as before.Source§fn compact_log_entries(&mut self, entries: &[String]) -> Result<(), LinkError>
fn compact_log_entries(&mut self, entries: &[String]) -> Result<(), LinkError>
entries, the
retained journal. After a crash the log holds either the old or the
new journal, never a mixture. Called only between transactions and
only when supports_compaction is true.