Documentation ¶
Index ¶
- func FastChecksum(ctx context.Context, backupMeta *backuppb.BackupMeta, ...) error
- type Executor
- type ExecutorBuilder
- func (builder *ExecutorBuilder) Build() (*Executor, error)
- func (builder *ExecutorBuilder) SetBackoffWeight(backoffWeight int) *ExecutorBuilder
- func (builder *ExecutorBuilder) SetConcurrency(conc uint) *ExecutorBuilder
- func (builder *ExecutorBuilder) SetExplicitRequestSourceType(name string) *ExecutorBuilder
- func (builder *ExecutorBuilder) SetNewKeyspace(keyspace []byte) *ExecutorBuilder
- func (builder *ExecutorBuilder) SetOldKeyspace(keyspace []byte) *ExecutorBuilder
- func (builder *ExecutorBuilder) SetOldTable(oldTable *metautil.Table) *ExecutorBuilder
- func (builder *ExecutorBuilder) SetResourceGroupName(name string) *ExecutorBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FastChecksum ¶
func FastChecksum( ctx context.Context, backupMeta *backuppb.BackupMeta, storage storage.ExternalStorage, cipher *backuppb.CipherInfo, ) error
FastChecksum checks whether the "local" checksum matches the checksum from TiKV.
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
Executor is a checksum executor.
func (*Executor) Execute ¶
func (exec *Executor) Execute( ctx context.Context, client kv.Client, updateFn func(), ) (*tipb.ChecksumResponse, error)
Execute executes a checksum executor.
func (*Executor) RawRequests ¶
RawRequests extracts the raw requests associated with this executor. This is mainly used for debugging only.
type ExecutorBuilder ¶
type ExecutorBuilder struct {
// contains filtered or unexported fields
}
ExecutorBuilder is used to build a "kv.Request".
func NewExecutorBuilder ¶
func NewExecutorBuilder(table *model.TableInfo, ts uint64) *ExecutorBuilder
NewExecutorBuilder returns a new executor builder.
func (*ExecutorBuilder) Build ¶
func (builder *ExecutorBuilder) Build() (*Executor, error)
Build builds a checksum executor.
func (*ExecutorBuilder) SetBackoffWeight ¶
func (builder *ExecutorBuilder) SetBackoffWeight(backoffWeight int) *ExecutorBuilder
SetBackoffWeight set the backoffWeight of the checksum executing.
func (*ExecutorBuilder) SetConcurrency ¶
func (builder *ExecutorBuilder) SetConcurrency(conc uint) *ExecutorBuilder
SetConcurrency set the concurrency of the checksum executing.
func (*ExecutorBuilder) SetExplicitRequestSourceType ¶
func (builder *ExecutorBuilder) SetExplicitRequestSourceType(name string) *ExecutorBuilder
func (*ExecutorBuilder) SetNewKeyspace ¶
func (builder *ExecutorBuilder) SetNewKeyspace(keyspace []byte) *ExecutorBuilder
func (*ExecutorBuilder) SetOldKeyspace ¶
func (builder *ExecutorBuilder) SetOldKeyspace(keyspace []byte) *ExecutorBuilder
func (*ExecutorBuilder) SetOldTable ¶
func (builder *ExecutorBuilder) SetOldTable(oldTable *metautil.Table) *ExecutorBuilder
SetOldTable set a old table info to the builder.
func (*ExecutorBuilder) SetResourceGroupName ¶
func (builder *ExecutorBuilder) SetResourceGroupName(name string) *ExecutorBuilder
Click to show internal directories.
Click to hide internal directories.