We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35ace62 commit d12c026Copy full SHA for d12c026
1 file changed
go/logic/inspect.go
@@ -21,6 +21,8 @@ import (
21
"github.com/outbrain/golib/sqlutils"
22
)
23
24
+const startSlavePostWaitMilliseconds = 500 * time.Millisecond
25
+
26
// Inspector reads data from the read-MySQL-server (typically a replica, but can be the master)
27
// It is used for gaining initial status and structure, and later also follow up on progress and changelog
28
type Inspector struct {
@@ -258,6 +260,8 @@ func (this *Inspector) restartReplication() error {
258
260
if startError != nil {
259
261
return startError
262
}
263
+ time.Sleep(startSlavePostWaitMilliseconds)
264
265
log.Debugf("Replication restarted")
266
return nil
267
0 commit comments