Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommitBeforeEnterNewTxn ¶
func CommitBeforeEnterNewTxn(ctx context.Context, sctx sessionctx.Context) error
CommitBeforeEnterNewTxn is called before entering a new transaction. It checks whether the old txn is valid in which case we should commit it first.
func GetSnapshotWithTS ¶
func GetSnapshotWithTS(s sessionctx.Context, ts uint64, interceptor kv.SnapshotInterceptor) kv.Snapshot
GetSnapshotWithTS returns a snapshot with ts.
func SetTxnAssertionLevel ¶
func SetTxnAssertionLevel(txn kv.Transaction, assertionLevel variable.AssertionLevel)
SetTxnAssertionLevel sets assertion level of a transactin. Note that assertion level should be set only once just after creating a new transaction.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.