Skip to content

Commit

Permalink
K8SPXC-1293: Fix hanging mysqlbinlog in case proxy protocol enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
egegunes committed Oct 19, 2023
1 parent cc11293 commit 9e124bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/pitr/collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ func (c *Collector) manageBinlog(ctx context.Context, binlog pxc.Binlog) (err er
}

errBuf := &bytes.Buffer{}
cmd := exec.CommandContext(ctx, "mysqlbinlog", "-R", "--raw", "-h"+c.db.GetHost(), "-u"+c.pxcUser, binlog.Name)
cmd := exec.CommandContext(ctx, "mysqlbinlog", "-R", "-P", "33062", "--raw", "-h"+c.db.GetHost(), "-u"+c.pxcUser, binlog.Name)
cmd.Env = append(cmd.Env, "MYSQL_PWD="+c.pxcPass)
cmd.Dir = os.TempDir()
cmd.Stderr = errBuf
Expand Down

0 comments on commit 9e124bb

Please sign in to comment.