lock

package
v3.1.0-fork Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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) 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