package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev

# Functions

BuildLockErr generates ErrKeyLocked objects.

# Variables

ErrRetryable.
ErrRetryable.
ErrRetryable.

# Structs

ErrAssertionFailed is returned if any assertion fails on a transaction request.
ErrCommitExpire is returned when commit key commitTs smaller than lock.MinCommitTs.
ErrConflict is the error when the commit meets an write conflict error.
ErrDeadlock is returned when deadlock is detected.
ErrInvalidOp is returned when an operation cannot be completed.
ErrKeyAlreadyExists is returned when a key already exists.
ErrLocked is returned when trying to Read/Write on a locked key.
ErrPrimaryMismatch is returned if CheckTxnStatus request is sent to a secondary lock.
ErrTxnNotFound is returned if the required txn info not found on storage.

# Type aliases

ErrAlreadyCommitted is returned specially when client tries to rollback a committed lock.
ErrRetryable suggests that client may restart the txn.