tidb: github.com/pingcap/tidb/lock Index | Files

package lock

import "github.com/pingcap/tidb/lock"

Index

Package Files

lock.go

type Checker Uses

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

Checker uses to check tables lock.

func NewChecker Uses

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

NewChecker return new lock Checker.

func (*Checker) CheckLockInDB Uses

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

CheckLockInDB uses to check operation on database.

func (*Checker) CheckTableLock Uses

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

CheckTableLock uses to check table lock.

Package lock imports 6 packages (graph) and is imported by 2 packages. Updated 2019-07-10. Refresh now. Tools for package owners.