Merge pull request #337 from github/start-slave-wait
sleeping 500ms after 'START SLAVE'
This commit is contained in:
commit
863f50808c
@ -21,6 +21,8 @@ import (
|
||||
"github.com/outbrain/golib/sqlutils"
|
||||
)
|
||||
|
||||
const startSlavePostWaitMilliseconds = 500 * time.Millisecond
|
||||
|
||||
// Inspector reads data from the read-MySQL-server (typically a replica, but can be the master)
|
||||
// It is used for gaining initial status and structure, and later also follow up on progress and changelog
|
||||
type Inspector struct {
|
||||
@ -258,6 +260,8 @@ func (this *Inspector) restartReplication() error {
|
||||
if startError != nil {
|
||||
return startError
|
||||
}
|
||||
time.Sleep(startSlavePostWaitMilliseconds)
|
||||
|
||||
log.Debugf("Replication restarted")
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user