Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Commit

Permalink
streamer: fixup pool(to) connection session variables setting #12
Browse files Browse the repository at this point in the history
  • Loading branch information
BohuTANG committed Apr 9, 2019
1 parent 800e65f commit 3d6f763
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/streamer.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func Streamer(log *xlog.Log, args *Args) {
AssertNil(err)
defer fromPool.Close()

toPool, err := NewPool(log, args.Threads, args.ToAddress, args.ToUser, args.ToPassword, "")
toPool, err := NewPool(log, args.Threads, args.ToAddress, args.ToUser, args.ToPassword, args.SessionVars)
AssertNil(err)
defer toPool.Close()

Expand Down
2 changes: 1 addition & 1 deletion src/mystreamer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func main() {
flag.Usage = func() { usage() }
flag.Parse()

if flagHost == "" || flagUser == "" || flagPasswd == "" || flagDb == "" || flag2host == "" || flag2user == "" || flag2passwd == "" {
if flagHost == "" || flagUser == "" || flagDb == "" || flag2host == "" || flag2user == "" {
usage()
os.Exit(0)
}
Expand Down

0 comments on commit 3d6f763

Please sign in to comment.