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

# Packages

# Functions

CleanUpTempDir is used to remove the stale index data.
CopReadBatchSize is the batch size of coprocessor read.
CopReadChunkPoolSize is the size of chunk pool, which represents the max concurrent ongoing coprocessor requests.
GenIngestTempDataDir generates a path for DDL ingest.
InitGlobalLightningEnv initialize Lightning backfill environment.
InstanceAddr returns the string concat with instance address and temp-dir.
NewCheckpointManager creates a new checkpoint manager.
NewDDLTLS creates a common.TLS from the tidb config for DDL.
NewDiskRootImpl creates a new DiskRoot.
NewLitBackendCtxMgr creates a new litBackendCtxMgr.
NewMemRootImpl creates a new memRootImpl.
NewMockBackendCtxMgr creates a new mock backend context manager.
NewMockEngineInfo creates a new mock engine info.
RiskOfDiskFull checks if the disk has less than 10% space.
TryConvertToKeyExistsErr checks if the input error is ErrFoundDuplicateKeys.

# Constants

FlushModeAuto means caller does not enforce any flush, the implementation can decide it.
FlushModeForceFlushAndImport means flush and import all data to TiKV.
JobCheckpointVersionCurrent is the current version of the checkpoint.
JobCheckpointVersionCurrent is the current version of the checkpoint.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
Message const text.
OptCheckDup checks if there is duplicate entry for unique indexes.
OptCleanData cleans up local sort dir data.
OptCloseEngines only closes engines, it does not clean up sort path data.

# Variables

ForceSyncFlagForTest is a flag to force sync only for test.
ImporterRangeConcurrencyForTest is only used for test.
LitBackCtxMgr is the entry for the lightning backfill process.
LitInitialized is the flag indicates whether the lightning backfill process is initialized.
LitMemRoot is used to track the memory usage of the lightning backfill process.
MockDMLExecutionStateBeforeImport is a failpoint to mock the DML execution state before import.
MockExecAfterWriteRow is only used for test.
ResignOwnerForTest is only used for test.

# Structs

CheckpointManager is a checkpoint manager implementation that used by non-distributed reorganization.
JobReorgMeta is the metadata for a reorg job.
MockBackendCtx is a mock backend context.
MockBackendCtxMgr is a mock backend context manager.
MockEngineInfo is a mock engine info.
MockWriter is a mock writer.
ReorgCheckpoint is the checkpoint for a reorg job.

# Interfaces

BackendCtx is the backend context for one add index reorg task.
BackendCtxMgr is used to manage the BackendCtx.
DiskRoot is used to track the disk usage for the lightning backfill process.
Engine is the interface for the engine that can be used to write key-value pairs.
FlushController is an interface to control the flush of data so after it returns caller can save checkpoint.
MemRoot is used to track the memory usage for the lightning backfill process.
Writer is the interface for the writer that can be used to write key-value pairs.

# Type aliases

FlushMode is used to control how to flush.
MockWriteHook the hook for write in mock engine.
UnregisterOpt controls the behavior of backend context unregistering.