Documentation ¶
Index ¶
Constants ¶
const ( SI = txnsnapshot.SI RC = txnsnapshot.RC RCCheckTS = txnsnapshot.RCCheckTS )
IsoLevel value for transaction priority.
const ( PriorityHigh = txnutil.PriorityHigh PriorityNormal = txnutil.PriorityNormal PriorityLow = txnutil.PriorityLow )
Priority value for transaction priority.
const MaxTxnTimeUse = transaction.MaxTxnTimeUse
MaxTxnTimeUse is the max time a Txn may use (in ms) from its begin to commit. We use it to abort the transaction to guarantee GC worker will not influence it.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinlogWriteResult ¶
type BinlogWriteResult = transaction.BinlogWriteResult
BinlogWriteResult defines the result of prewrite binlog.
type KVFilter ¶
type KVFilter = transaction.KVFilter
KVFilter is a filter that filters out unnecessary KV pairs.
type KVSnapshot ¶
type KVSnapshot = txnsnapshot.KVSnapshot
KVSnapshot implements the tidbkv.Snapshot interface.
type KVTxn ¶
type KVTxn = transaction.KVTxn
KVTxn contains methods to interact with a TiKV transaction.
type LockResolver ¶
type LockResolver = txnlock.LockResolver
LockResolver resolves locks and also caches resolved txn status.
type SchemaAmender ¶
type SchemaAmender = transaction.SchemaAmender
SchemaAmender is used by pessimistic transactions to amend commit mutations for schema change during 2pc.
type SchemaLeaseChecker ¶
type SchemaLeaseChecker = transaction.SchemaLeaseChecker
SchemaLeaseChecker is used to validate schema version is not changed during transaction execution.
type SchemaVer ¶
type SchemaVer = transaction.SchemaVer
SchemaVer is the infoSchema which will return the schema version.
type SnapshotRuntimeStats ¶
type SnapshotRuntimeStats = txnsnapshot.SnapshotRuntimeStats
SnapshotRuntimeStats records the runtime stats of snapshot.