package
6.7.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev

# Functions

CompleteDeleteRange moves a record from gc_delete_range table to gc_delete_range_done table.
DeleteDoneRecord removes a record from gc_delete_range_done table.
DeleteKeyFromEtcd deletes key value from etcd.
EmulatorGCDisable disables emulator gc.
EmulatorGCEnable enables emulator gc.
GetInternalResourceGroupTaggerForTopSQL only use for testing.
GetTimeZone gets the session location's zone name and offset.
IsContextDone checks if context is done.
IsEmulatorGCEnable indicates whether emulator GC enabled.
IsInternalResourceGroupTaggerForTopSQL use for testing.
LoadDDLReorgVars loads ddl reorg variable from mysql.global_variables.
LoadDDLVars loads ddl variable from mysql.global_variables.
LoadDeleteRanges loads delete range tasks from gc_delete_range table.
LoadDoneDeleteRanges loads deleted ranges from gc_delete_range_done table.
LoadGlobalVars loads global variable from mysql.global_variables.
NewDeadTableLockChecker creates new DeadLockChecker.
PutKVToEtcd puts key value to etcd.
RemoveFromGCDeleteRange is exported for ddl pkg to use.
RemoveMultiFromGCDeleteRange is exported for ddl pkg to use.
UpdateDeleteRange is only for emulator.

# Constants

DDLAllSchemaVersions is the path on etcd that is used to store all servers current schema versions.
DDLAllSchemaVersionsByJob is the path on etcd that is used to store all servers current schema versions.
DDLGlobalSchemaVersion is the path on etcd that is used to store the latest schema versions.
KeyOpDefaultTimeout is the default timeout for each key operation.
KeyOpRetryInterval is the interval between two key operations.
SessionTTL is the etcd session's TTL in seconds.

# Structs

DeadTableLockChecker uses to check dead table locks.
DelRangeTask is for run delete-range command in gc_worker.
Event is an event that a ddl operation happened.