pub struct VersionSet { /* private fields */ }Unused duplicate; live MVCC is mvcc_concurrent::ConcurrentMvcc + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
Expand description
Manages multiple versions/snapshots of storage state.
Provides lock-free reads by allowing readers to hold references to older snapshots while compaction creates new versions.
Implementationsยง
Sourceยงimpl VersionSet
impl VersionSet
Sourcepub fn new() -> Self
๐Deprecated: Unused duplicate; live MVCC is mvcc_concurrent::ConcurrentMvcc + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
pub fn new() -> Self
Unused duplicate; live MVCC is mvcc_concurrent::ConcurrentMvcc + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
Create a new version set with an empty initial snapshot
Sourcepub fn acquire(&self) -> SnapshotGuard
๐Deprecated: Unused duplicate; live MVCC is mvcc_concurrent::ConcurrentMvcc + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
pub fn acquire(&self) -> SnapshotGuard
Unused duplicate; live MVCC is mvcc_concurrent::ConcurrentMvcc + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
Acquire a snapshot for reading
Returns a guard that keeps the snapshot alive until dropped.
Sourcepub fn install(&self, snapshot: Snapshot)
๐Deprecated: Unused duplicate; live MVCC is mvcc_concurrent::ConcurrentMvcc + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
pub fn install(&self, snapshot: Snapshot)
Unused duplicate; live MVCC is mvcc_concurrent::ConcurrentMvcc + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
Install a new snapshot
The old snapshot remains valid for existing readers.
Sourcepub fn create_snapshot(&self, column_groups: Vec<Vec<ColumnGroupRef>>) -> u64
๐Deprecated: Unused duplicate; live MVCC is mvcc_concurrent::ConcurrentMvcc + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
pub fn create_snapshot(&self, column_groups: Vec<Vec<ColumnGroupRef>>) -> u64
Unused duplicate; live MVCC is mvcc_concurrent::ConcurrentMvcc + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
Create and install a new snapshot with column groups
Sourcepub fn cleanup(&self)
๐Deprecated: Unused duplicate; live MVCC is mvcc_concurrent::ConcurrentMvcc + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
pub fn cleanup(&self)
Unused duplicate; live MVCC is mvcc_concurrent::ConcurrentMvcc + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
Clean up old snapshots that have no readers
Sourcepub fn current_version(&self) -> u64
๐Deprecated: Unused duplicate; live MVCC is mvcc_concurrent::ConcurrentMvcc + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
pub fn current_version(&self) -> u64
Unused duplicate; live MVCC is mvcc_concurrent::ConcurrentMvcc + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
Get current version number
Sourcepub fn active_count(&self) -> usize
๐Deprecated: Unused duplicate; live MVCC is mvcc_concurrent::ConcurrentMvcc + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
pub fn active_count(&self) -> usize
Unused duplicate; live MVCC is mvcc_concurrent::ConcurrentMvcc + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
Get number of active snapshots (includes current)
Sourcepub fn stats(&self) -> VersionSetStatsSnapshot
๐Deprecated: Unused duplicate; live MVCC is mvcc_concurrent::ConcurrentMvcc + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
pub fn stats(&self) -> VersionSetStatsSnapshot
Unused duplicate; live MVCC is mvcc_concurrent::ConcurrentMvcc + durable_storage::MvccMemTable. Scheduled for removal (Task 2 consolidation).
Get statistics snapshot
Trait Implementationsยง
Auto Trait Implementationsยง
impl !Freeze for VersionSet
impl !RefUnwindSafe for VersionSet
impl Send for VersionSet
impl Sync for VersionSet
impl Unpin for VersionSet
impl UnsafeUnpin for VersionSet
impl UnwindSafe for VersionSet
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
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>
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