pub struct LocalRecoverySwapFacts {
pub log_cleaned_exists: bool,
pub log_swap_exists: bool,
pub final_log_exists: bool,
}Expand description
What Log::open observes at one base offset that carries a compaction
.swap file, from a single directory listing.
Compaction writes its survivor segment under .cleaned names, fsyncs it,
renames the sidecars and then the log from .cleaned to .swap, and only
after that rename is durable deletes the segments it replaces. So a
.log.swap with no .log.cleaned beside it is a complete, durable segment,
and it may already be the only copy of the records it holds.
Fields§
§log_cleaned_exists: bool<base>.log.cleaned exists: the rewrite, or its rename to .swap,
never finished.
log_swap_exists: bool<base>.log.swap exists.
final_log_exists: bool<base>.log exists.
Trait Implementations§
Source§impl Clone for LocalRecoverySwapFacts
impl Clone for LocalRecoverySwapFacts
Source§fn clone(&self) -> LocalRecoverySwapFacts
fn clone(&self) -> LocalRecoverySwapFacts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LocalRecoverySwapFacts
Source§impl Debug for LocalRecoverySwapFacts
impl Debug for LocalRecoverySwapFacts
impl Eq for LocalRecoverySwapFacts
Source§impl PartialEq for LocalRecoverySwapFacts
impl PartialEq for LocalRecoverySwapFacts
impl StructuralPartialEq for LocalRecoverySwapFacts
Auto Trait Implementations§
impl Freeze for LocalRecoverySwapFacts
impl RefUnwindSafe for LocalRecoverySwapFacts
impl Send for LocalRecoverySwapFacts
impl Sync for LocalRecoverySwapFacts
impl Unpin for LocalRecoverySwapFacts
impl UnsafeUnpin for LocalRecoverySwapFacts
impl UnwindSafe for LocalRecoverySwapFacts
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more