Documentation ¶
Index ¶
Constants ¶
View Source
const (
MaxScanCntLimit = 1024 // limited by grpc message size
)
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(ctx context.Context, cmdName string, executor *Executor, method StorageChecksumMethod, expect rawkv.RawChecksum) error
func UpdateChecksum ¶
func UpdateChecksum(c *rawkv.RawChecksum, crc64Xor, totalKvs, totalBytes uint64)
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
ExecutorBuilder is used to build
func NewExecutor ¶
func NewExecutor(ctx context.Context, keyRanges []*utils.KeyRange, pdAddrs []string, apiVersion kvrpcpb.APIVersion, concurrency uint, tls utils.TLSConfig) (*Executor, error)
NewExecutorBuilder returns a new executor builder.
func (*Executor) Execute ¶
func (exec *Executor) Execute( ctx context.Context, expect rawkv.RawChecksum, method StorageChecksumMethod, progressCallBack func(backup.ProgressUnit), ) error
Execute executes a checksum executor.
type StorageChecksumMethod ¶
type StorageChecksumMethod int32
const ( StorageChecksumCommand StorageChecksumMethod = 0 StorageScanCommand StorageChecksumMethod = 1 )
Click to show internal directories.
Click to hide internal directories.