lock

package
v1.1.0-beta.0...-9815b45 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLockedTableDropped = errors.New("other table can be accessed after locked table dropped")

ErrLockedTableDropped returns error when try to drop the table with write lock

Functions

This section is empty.

Types

type Checker

type Checker struct {
	// contains filtered or unexported fields
}

Checker uses to check tables lock.

func NewChecker

func NewChecker(ctx sessionctx.Context, is infoschema.InfoSchema) *Checker

NewChecker return new lock Checker.

func (*Checker) CheckLockInDB

func (c *Checker) CheckLockInDB(db string, privilege mysql.PrivilegeType) error

CheckLockInDB uses to check operation on database.

func (*Checker) CheckTableLock

func (c *Checker) CheckTableLock(db, table string, privilege mysql.PrivilegeType, alterWriteable bool) error

CheckTableLock uses to check table lock.

Jump to

Keyboard shortcuts

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