From 7624ff028052140fcb2f68b32b8eee812ad2841d Mon Sep 17 00:00:00 2001 From: deepthi Date: Fri, 8 Dec 2023 22:55:51 -0800 Subject: [PATCH] mysqld: check for correct return value from WAIT_FOR_EXECUTED_GTID_SET Signed-off-by: deepthi --- go/vt/mysqlctl/replication.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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