Skip to content

Commit 15a8459

Browse files
authored
br: fix printf can tolerate type change (pingcap#51297)
close pingcap#51296
1 parent 2c46b8e commit 15a8459

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

br/pkg/conn/conn.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,10 @@ func NewMgr(
176176
}
177177

178178
// Disable GC because TiDB enables GC already.
179-
path := fmt.Sprintf("tikv://%s?disableGC=true&keyspaceName=%s", pdAddrs, config.GetGlobalKeyspaceName())
179+
path := fmt.Sprintf(
180+
"tikv://%s?disableGC=true&keyspaceName=%s",
181+
strings.Join(pdAddrs, ","), config.GetGlobalKeyspaceName(),
182+
)
180183
storage, err := g.Open(path, securityOption)
181184
if err != nil {
182185
return nil, errors.Trace(err)

0 commit comments

Comments
 (0)