[][src]Enum rocks::options::WALRecoveryMode

#[repr(C)]pub enum WALRecoveryMode {
    TolerateCorruptedTailRecords,
    AbsoluteConsistency,
    PointInTimeRecovery,
    SkipAnyCorruptedRecords,
}

Recovery mode to control the consistency while replaying WAL

Variants

TolerateCorruptedTailRecords

Original levelDB recovery We tolerate incomplete record in trailing data on all logs Use case : This is legacy behavior (default)

AbsoluteConsistency

Recover from clean shutdown We don't expect to find any corruption in the WAL Use case : This is ideal for unit tests and rare applications that can require high consistency guarantee

PointInTimeRecovery

Recover to point-in-time consistency We stop the WAL playback on discovering WAL inconsistency Use case : Ideal for systems that have disk controller cache like hard disk, SSD without super capacitor that store related data

SkipAnyCorruptedRecords

Recovery after a disaster We ignore any corruption in the WAL and try to salvage as much data as possible Use case : Ideal for last ditch effort to recover data or systems that operate with low grade unrelated data

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.