pub struct RangeLockManager { /* private fields */ }๐Deprecated:
Unused; SSI lives in ssi/MvccManager. Scheduled for removal (Task 2 consolidation).
Expand description
Interval-based range lock manager
Uses an interval tree for O(log n) conflict detection.
Implementationsยง
Sourceยงimpl RangeLockManager
impl RangeLockManager
pub fn new() -> Self
๐Deprecated:
Unused; SSI lives in ssi/MvccManager. Scheduled for removal (Task 2 consolidation).
Sourcepub fn acquire(
&self,
txn_id: TxnId,
range: KeyRange,
is_write: bool,
) -> Result<(), RangeLockConflict>
๐Deprecated: Unused; SSI lives in ssi/MvccManager. Scheduled for removal (Task 2 consolidation).
pub fn acquire( &self, txn_id: TxnId, range: KeyRange, is_write: bool, ) -> Result<(), RangeLockConflict>
Unused; SSI lives in ssi/MvccManager. Scheduled for removal (Task 2 consolidation).
Acquire a range lock for a transaction
Sourcepub fn release(&self, txn_id: TxnId)
๐Deprecated: Unused; SSI lives in ssi/MvccManager. Scheduled for removal (Task 2 consolidation).
pub fn release(&self, txn_id: TxnId)
Unused; SSI lives in ssi/MvccManager. Scheduled for removal (Task 2 consolidation).
Release all locks held by a transaction
Sourcepub fn check_conflict(
&self,
txn_id: TxnId,
range: &KeyRange,
is_write: bool,
) -> Option<TxnId>
๐Deprecated: Unused; SSI lives in ssi/MvccManager. Scheduled for removal (Task 2 consolidation).
pub fn check_conflict( &self, txn_id: TxnId, range: &KeyRange, is_write: bool, ) -> Option<TxnId>
Unused; SSI lives in ssi/MvccManager. Scheduled for removal (Task 2 consolidation).
Check for conflicts without acquiring
Sourcepub fn lock_count(&self, txn_id: TxnId) -> usize
๐Deprecated: Unused; SSI lives in ssi/MvccManager. Scheduled for removal (Task 2 consolidation).
pub fn lock_count(&self, txn_id: TxnId) -> usize
Unused; SSI lives in ssi/MvccManager. Scheduled for removal (Task 2 consolidation).
Get number of locks held by a transaction
Trait Implementationsยง
Auto Trait Implementationsยง
impl !Freeze for RangeLockManager
impl !RefUnwindSafe for RangeLockManager
impl Send for RangeLockManager
impl Sync for RangeLockManager
impl Unpin for RangeLockManager
impl UnsafeUnpin for RangeLockManager
impl UnwindSafe for RangeLockManager
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
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>
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