pub struct MvccClock { /* private fields */ }Expand description
Implementations§
Source§impl MvccClock
impl MvccClock
Sourcepub fn new(initial: u64) -> Self
pub fn new(initial: u64) -> Self
Builds a clock seeded at initial. The next MvccClock::tick
returns initial + 1.
Use this with the value persisted in the WAL header at open time so the clock resumes past the last-checkpointed high-water mark.
Sourcepub fn now(&self) -> u64
pub fn now(&self) -> u64
Returns the current high-water timestamp without advancing it.
Phase 11.6’s GC reads this alongside
super::ActiveTxRegistry::min_active_begin_ts to decide
which row-version chains are reclaimable.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for MvccClock
impl RefUnwindSafe for MvccClock
impl Send for MvccClock
impl Sync for MvccClock
impl Unpin for MvccClock
impl UnsafeUnpin for MvccClock
impl UnwindSafe for MvccClock
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