Skip to main content

VlsnIndexView

Struct VlsnIndexView 

Source
pub struct VlsnIndexView { /* private fields */ }
Expand description

A SyncupView backed by a live VlsnIndex (VLSN → LSN) plus the index’s range (getFirst/getLastSync/getLastTxnEnd).

The per-VLSN fingerprint is the LSN itself: two nodes hold the “same record” at a VLSN iff they assigned it the same LSN. This is the in-memory equivalent of JE OutputWireRecord.match for the syncup driver that works from the VLSN index without re-reading raw log bytes (used by the live become_replica path and the multi-node test harness, which track replication at the VLSN-index granularity). The SyncupLogView above is the full re-read used when raw per-record checksums are required.

A VLSN is treated as a sync point iff it is <= lastSync and held in the index — matching JE, where every sync point is a txn end and lastSync bounds the highest matchpoint candidate.

Implementations§

Source§

impl VlsnIndexView

Source

pub fn from_index(index: &Arc<VlsnIndex>) -> Self

Build a view over index.

Trait Implementations§

Source§

impl SyncupView for VlsnIndexView

Source§

fn last_sync(&self) -> Vlsn

Highest sync-point VLSN (VLSNRange.getLastSync) — the first matchpoint candidate.
Source§

fn last_txn_end(&self) -> Vlsn

Highest commit/abort VLSN (VLSNRange.getLastTxnEnd) — the rollback safety boundary.
Source§

fn first_vlsn(&self) -> Vlsn

First contiguous VLSN available (VLSNRange.getFirst). The search may not go below this.
Source§

fn entry(&self, vlsn: Vlsn) -> Option<VlsnEntry>

Look up the entry at vlsn, or None if this node does not hold it.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V