Documentation
¶
Overview ¶
Package checksum provides online checksum functionality. Two tables on the same MySQL server can be compared with only an initial lock. It is not in the row/ package because it requires a replClient to be passed in, which would cause a circular dependency.
Package checksum provides online checksum functionality. Two tables on the same MySQL server can be compared with only an initial lock. It is not in the row/ package because it requires a replClient to be passed in, which would cause a circular dependency.
Index ¶
- type Checker
- type CheckerConfig
- type DistributedChecker
- func (c *DistributedChecker) ChecksumChunk(ctx context.Context, trxPool *dbconn.TrxPool, chunk *table.Chunk) error
- func (c *DistributedChecker) ExecTime() time.Duration
- func (c *DistributedChecker) GetProgress() string
- func (c *DistributedChecker) Run(ctx context.Context) error
- func (c *DistributedChecker) StartTime() time.Time
- type SingleChecker
- func (c *SingleChecker) ChecksumChunk(ctx context.Context, trxPool *dbconn.TrxPool, chunk *table.Chunk) error
- func (c *SingleChecker) ExecTime() time.Duration
- func (c *SingleChecker) GetProgress() string
- func (c *SingleChecker) Run(ctx context.Context) error
- func (c *SingleChecker) StartTime() time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type CheckerConfig ¶
type CheckerConfig struct {
Concurrency int
TargetChunkTime time.Duration
DBConfig *dbconn.DBConfig
Logger *slog.Logger
FixDifferences bool
Watermark string // optional; defines a watermark to start from
MaxRetries int
Applier applier.Applier // optional; indicates it is a distributed checker
}
func NewCheckerDefaultConfig ¶
func NewCheckerDefaultConfig() *CheckerConfig
type DistributedChecker ¶ added in v0.10.1
func (*DistributedChecker) ChecksumChunk ¶ added in v0.10.1
func (*DistributedChecker) ExecTime ¶ added in v0.10.1
func (c *DistributedChecker) ExecTime() time.Duration
func (*DistributedChecker) GetProgress ¶ added in v0.10.1
func (c *DistributedChecker) GetProgress() string
GetProgress returns the progress of the checker this is really just a proxy to the chunker progress.
func (*DistributedChecker) Run ¶ added in v0.10.1
func (c *DistributedChecker) Run(ctx context.Context) error
func (*DistributedChecker) StartTime ¶ added in v0.10.1
func (c *DistributedChecker) StartTime() time.Time
type SingleChecker ¶ added in v0.10.1
func (*SingleChecker) ChecksumChunk ¶ added in v0.10.1
func (*SingleChecker) ExecTime ¶ added in v0.10.1
func (c *SingleChecker) ExecTime() time.Duration
func (*SingleChecker) GetProgress ¶ added in v0.10.1
func (c *SingleChecker) GetProgress() string
GetProgress returns the progress of the checker this is really just a proxy to the chunker progress.
func (*SingleChecker) StartTime ¶ added in v0.10.1
func (c *SingleChecker) StartTime() time.Time