Skip to content

Commit

Permalink
remove-direct-connection-for-pbm-pitr-switch. (#2041)
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelKhripkov authored and artemgavrilov committed Apr 24, 2023
1 parent d303cde commit f85fa9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions agent/client/pbm.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"os/exec"
"path/filepath"
"strconv"
"strings"
"time"

"github.com/pkg/errors"
Expand All @@ -40,6 +41,9 @@ func (c *Client) handlePBMSwitchRequest(ctx context.Context, req *agentpb.PBMSwi
return errors.WithStack(err)
}

// TODO following line is a quick patch. Come up with something better.
dsn = strings.Replace(dsn, "directConnection=true", "directConnection=false", 1)

ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
defer cancel()

Expand Down

0 comments on commit f85fa9a

Please sign in to comment.