internal

package
v1.1.0-beta.0...-68ac9ec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL