pub struct MvccHeader {
pub magic: u64,
pub version: u32,
pub page_size: u32,
pub num_readers: u32,
pub current_epoch: AtomicU64,
pub current_ts: AtomicU64,
pub writer_lock: AtomicU32,
pub commits_since_gc: AtomicU64,
/* private fields */
}Expand description
MVCC metadata file header
Fields§
§magic: u64Magic bytes for validation
version: u32Format version
page_size: u32Page size
num_readers: u32Number of reader slots
current_epoch: AtomicU64Current epoch (incremented on recovery/GC)
current_ts: AtomicU64Current HLC timestamp
writer_lock: AtomicU32Writer lock (0 = free, pid = locked)
commits_since_gc: AtomicU64Number of commits since last GC
Implementations§
Trait Implementations§
Source§impl Debug for MvccHeader
impl Debug for MvccHeader
Auto Trait Implementations§
impl !Freeze for MvccHeader
impl RefUnwindSafe for MvccHeader
impl Send for MvccHeader
impl Sync for MvccHeader
impl Unpin for MvccHeader
impl UnsafeUnpin for MvccHeader
impl UnwindSafe for MvccHeader
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more