Skip to content

Commit

Permalink
recycle connection when using transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
bbeaudreault committed Mar 2, 2017
1 parent 53141e9 commit ea437b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go/vt/tabletserver/query_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ func (qre *QueryExecutor) execDDL() (*sqltypes.Result, error) {
if err != nil {
return nil, err
}
defer conn.Recycle()
result, err := qre.execSQL(conn, qre.query, false)
if err != nil {
return nil, err
Expand Down

0 comments on commit ea437b5

Please sign in to comment.