Skip to content

Commit

Permalink
Merge pull request flike#404 from hoojos/push_request
Browse files Browse the repository at this point in the history
Update conn_query.go
  • Loading branch information
Fei Chen authored Dec 29, 2017
2 parents d33d0d5 + a95528d commit f03442c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions proxy/server/conn_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,11 @@ func (c *ClientConn) executeInMultiNodes(conns map[string]*backend.BackendConn,
wg.Done()
}

offsert := 0
offset := 0
for nodeName, co := range conns {
s := sqls[nodeName] //[]string
go f(rs, offsert, s, co)
offsert += len(s)
go f(rs, offset, s, co)
offset += len(s)
}

wg.Wait()
Expand Down

0 comments on commit f03442c

Please sign in to comment.