package
9.0.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.
FolderNotEmpty returns true only when the folder is not empty.
GenKeyExistsErr builds a ErrKeyExists error.
GetInternalResourceGroupTaggerForTopSQL only use for testing.
GetTimeZone gets the session location's zone name and offset.
IsEmulatorGCEnable indicates whether emulator GC enabled.
IsInternalResourceGroupTaggerForTopSQL use for testing.
IsRaftKv2 checks whether the raft-kv2 is enabled.
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.
NewDeadTableLockChecker creates new DeadLockChecker.
NewWatcher creates a new watcher.
PutKVToEtcd puts key value to etcd.
PutKVToEtcdMono puts key value to etcd monotonously.
RemoveFromGCDeleteRange is exported for ddl pkg to use.
RemoveMultiFromGCDeleteRange is exported for ddl pkg to use.
UpdateDeleteRange is only for emulator.
WrapKey2String wraps the key to a string.
# 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.
ServerGlobalState is the path on etcd that is used to store the server global state.
SessionTTL is the etcd session's TTL in seconds.
# Variables
MockGlobalStateEntry is a mock global state entry.
# Structs
DeadTableLockChecker uses to check dead table locks.
DelRangeTask is for run delete-range command in gc_worker.
MockGlobalState is a mock global state.
MockGlobalStateSelector is used to get info from global state.
# Interfaces
Watcher is responsible for watching the etcd path related operations.