Skip to content

Commit

Permalink
mysqld: check for correct return value from WAIT_FOR_EXECUTED_GTID_SET
Browse files Browse the repository at this point in the history
Signed-off-by: deepthi <[email protected]>
  • Loading branch information
deepthi committed Dec 9, 2023
1 parent ab1ba2e commit 7624ff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/mysqlctl/replication.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7624ff0

Please sign in to comment.