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.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
func NewChecker ¶
func NewChecker(db *sql.DB, tbl, newTable *table.TableInfo, feed *repl.Client, config *CheckerConfig) (*Checker, error)
NewChecker creates a new checksum object.
func (*Checker) ChecksumChunk ¶
func (*Checker) DifferencesFound ¶
func (*Checker) RecentValue ¶
type CheckerConfig ¶
type CheckerConfig struct { Concurrency int TargetChunkTime time.Duration DBConfig *dbconn.DBConfig Logger loggers.Advanced FixDifferences bool }
func NewCheckerDefaultConfig ¶
func NewCheckerDefaultConfig() *CheckerConfig
Click to show internal directories.
Click to hide internal directories.