pub enum LocalRecoverySwapAction {
AbortSwap,
CompleteSwap,
PromoteSidecars,
Reject,
}Expand description
Crash-recovery action for one base offset that carries .swap files.
Variants§
AbortSwap
The swap never committed: delete its .swap files. No segment it
would replace has been touched.
CompleteSwap
The swap committed: delete every segment it replaces, then rename the
swap into place. This is Kafka’s LogLoader.load second and third
passes.
PromoteSidecars
The log rename already finished; promote the remaining sidecars.
Reject
Sidecar swaps with no log in any form.
Trait Implementations§
Source§impl Clone for LocalRecoverySwapAction
impl Clone for LocalRecoverySwapAction
Source§fn clone(&self) -> LocalRecoverySwapAction
fn clone(&self) -> LocalRecoverySwapAction
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 LocalRecoverySwapAction
Source§impl Debug for LocalRecoverySwapAction
impl Debug for LocalRecoverySwapAction
impl Eq for LocalRecoverySwapAction
Source§impl PartialEq for LocalRecoverySwapAction
impl PartialEq for LocalRecoverySwapAction
impl StructuralPartialEq for LocalRecoverySwapAction
Auto Trait Implementations§
impl Freeze for LocalRecoverySwapAction
impl RefUnwindSafe for LocalRecoverySwapAction
impl Send for LocalRecoverySwapAction
impl Sync for LocalRecoverySwapAction
impl Unpin for LocalRecoverySwapAction
impl UnsafeUnpin for LocalRecoverySwapAction
impl UnwindSafe for LocalRecoverySwapAction
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