diff --git a/go/vt/mysqlctl/replication.go b/go/vt/mysqlctl/replication.go index 23b19669f16..9152ff5ea71 100644 --- a/go/vt/mysqlctl/replication.go +++ b/go/vt/mysqlctl/replication.go @@ -377,7 +377,7 @@ func (mysqld *Mysqld) WaitSourcePos(ctx context.Context, targetPos replication.P if result.IsNull() { return fmt.Errorf("%v(%v) failed: replication is probably stopped", waitCommandName, query) } - if result.ToString() == "-1" { + if result.ToString() == "1" { return fmt.Errorf("timed out waiting for position %v", targetPos) } return nil