pub struct ReplayPlan {
pub writes: Vec<ReplayEntry>,
pub revokes: Vec<RevokeEntry>,
pub last_commit: u32,
pub next_sequence: Option<u32>,
pub blocks_walked: u64,
}Expand description
Ordered list of writes + revocations produced by walking the log.
Fields§
§writes: Vec<ReplayEntry>§revokes: Vec<RevokeEntry>§last_commit: u32Last committed transaction sequence seen.
next_sequence: Option<u32>Sequence to allocate after the last complete transaction (None if none).
blocks_walked: u64Number of journal blocks walked (for sanity / tests).
Implementations§
Source§impl ReplayPlan
impl ReplayPlan
Sourcepub fn filter_revoked(&mut self)
pub fn filter_revoked(&mut self)
Apply revoke records to the write list: drop any write whose fs_block was revoked by a later-or-equal transaction: the rule the format documentation gives for revoke blocks (“Revocation Block”).
Trait Implementations§
Source§impl Clone for ReplayPlan
impl Clone for ReplayPlan
Source§impl Debug for ReplayPlan
impl Debug for ReplayPlan
Auto Trait Implementations§
impl Freeze for ReplayPlan
impl RefUnwindSafe for ReplayPlan
impl Send for ReplayPlan
impl Sync for ReplayPlan
impl Unpin for ReplayPlan
impl UnsafeUnpin for ReplayPlan
impl UnwindSafe for ReplayPlan
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