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 context.TableLockReadContext, 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.
Click to show internal directories.
Click to hide internal directories.