Struct tikv::storage::txn::commands::CheckTxnStatus [−][src]
Check the status of a transaction. This is usually invoked by a transaction that meets
another transaction’s lock. If the primary lock is expired, it will rollback the primary
lock. If the primary lock exists but is not expired, it may update the transaction’s
min_commit_ts
. Returns a TxnStatus
to represent the status.
This is invoked on a transaction’s primary lock. The lock may be generated by either
AcquirePessimisticLock
or
Prewrite
.
Fields
ctx: Context
primary_key: Key
The primary key of the transaction.
lock_ts: TimeStamp
The lock’s ts, namely the transaction’s start_ts.
caller_start_ts: TimeStamp
The start_ts of the transaction that invokes this command.
current_ts: TimeStamp
The approximate current_ts when the command is invoked.
rollback_if_not_exist: bool
Specifies the behavior when neither commit/rollback record nor lock is found. If true, rollbacks that transaction; otherwise returns an error.
force_sync_commit: bool
resolving_pessimistic_lock: bool
Implementations
impl CheckTxnStatus
[src][−]
pub fn new(
primary_key: Key,
lock_ts: TimeStamp,
caller_start_ts: TimeStamp,
current_ts: TimeStamp,
rollback_if_not_exist: bool,
force_sync_commit: bool,
resolving_pessimistic_lock: bool,
ctx: Context
) -> TypedCommand<TxnStatus>
[src][−]
primary_key: Key,
lock_ts: TimeStamp,
caller_start_ts: TimeStamp,
current_ts: TimeStamp,
rollback_if_not_exist: bool,
force_sync_commit: bool,
resolving_pessimistic_lock: bool,
ctx: Context
) -> TypedCommand<TxnStatus>
Return a TypedCommand
that encapsulates the result of executing this command.
Trait Implementations
impl CommandExt for CheckTxnStatus
[src][+]
impl Debug for CheckTxnStatus
[src][+]
impl Display for CheckTxnStatus
[src][+]
impl<S: Snapshot, L: LockManager> WriteCommand<S, L> for CheckTxnStatus
[src][+]
Auto Trait Implementations
impl RefUnwindSafe for CheckTxnStatus
impl Send for CheckTxnStatus
impl Sync for CheckTxnStatus
impl Unpin for CheckTxnStatus
impl UnwindSafe for CheckTxnStatus
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<V, W> ConvertFrom<W> for V where
W: ConvertTo<V>,
[src][+]
W: ConvertTo<V>,
impl<T> From<T> for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> Pointable for T
[src][+]
impl<T> Pointable for T
[src][+]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,