Skip to content

Commit

Permalink
fix: issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizic committed Sep 7, 2023
1 parent 4ece6b6 commit f8eeb52
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -1434,7 +1434,7 @@ func (app *App) repairSlaveOfflineMode(host string, node *mysql.Node, state *Nod
}
err = node.SetDefaultReplicationSettings(masterNode)
if err != nil {
app.logger.Errorf("repair: failed to set optimize replication settings on slave %s: %s", host, err)
app.logger.Errorf("repair: failed to set default replication settings on slave %s: %s", host, err)
}
err = node.SetOnline()
if err != nil {
Expand Down Expand Up @@ -1475,10 +1475,6 @@ func (app *App) repairSlaveOfflineMode(host string, node *mysql.Node, state *Nod
} else {
app.logger.Infof("repair: slave %s set offline, because replication permanently broken", host)
}
err = node.OptimizeReplication()
if err != nil {
app.logger.Errorf("repair: failed to set optimize replication settings on slave %s: %s", host, err)
}
}
}
}
Expand Down

0 comments on commit f8eeb52

Please sign in to comment.