localized function name

This commit is contained in:
Shlomi Noach 2016-08-11 17:37:50 +02:00
parent 66ff5964ed
commit a46022f727
2 changed files with 3 additions and 3 deletions

View File

@ -280,8 +280,8 @@ func (this *Inspector) validateBinlogs() error {
return nil
}
// ValidateLogSlaveUpdates checks that binary log log_slave_updates is set. This test is not required when migrating on replica or when migrating directly on master
func (this *Inspector) ValidateLogSlaveUpdates() error {
// validateLogSlaveUpdates checks that binary log log_slave_updates is set. This test is not required when migrating on replica or when migrating directly on master
func (this *Inspector) validateLogSlaveUpdates() error {
query := `select @@global.log_slave_updates`
var logSlaveUpdates bool
if err := this.db.QueryRow(query).Scan(&logSlaveUpdates); err != nil {

View File

@ -828,7 +828,7 @@ func (this *Migrator) initiateInspector() (err error) {
} else if this.migrationContext.InspectorIsAlsoApplier() && !this.migrationContext.AllowedRunningOnMaster {
return fmt.Errorf("It seems like this migration attempt to run directly on master. Preferably it would be executed on a replica (and this reduces load from the master). To proceed please provide --allow-on-master")
}
if err := this.inspector.ValidateLogSlaveUpdates(); err != nil {
if err := this.inspector.validateLogSlaveUpdates(); err != nil {
return err
}