Skip to content

Commit

Permalink
br: fix printf can tolerate type change (#51297)
Browse files Browse the repository at this point in the history
close #51296
  • Loading branch information
lance6716 authored Feb 26, 2024
1 parent 2c46b8e commit 15a8459
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion br/pkg/conn/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,10 @@ func NewMgr(
}

// Disable GC because TiDB enables GC already.
path := fmt.Sprintf("tikv://%s?disableGC=true&keyspaceName=%s", pdAddrs, config.GetGlobalKeyspaceName())
path := fmt.Sprintf(
"tikv://%s?disableGC=true&keyspaceName=%s",
strings.Join(pdAddrs, ","), config.GetGlobalKeyspaceName(),
)
storage, err := g.Open(path, securityOption)
if err != nil {
return nil, errors.Trace(err)
Expand Down

0 comments on commit 15a8459

Please sign in to comment.