]> Cypherpunks repositories - gostls13.git/commit
database/sql: add SetMaxOpenConns
authorTad Glines <tad.glines@gmail.com>
Fri, 30 Aug 2013 00:20:39 +0000 (17:20 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 30 Aug 2013 00:20:39 +0000 (17:20 -0700)
commit4572e4848364b6098b565a2ef480e9b4e8ff5977
tree8c9ec10c9b5d8976402b4194b7b462ebef3832ff
parent048c577548d34e793d6ad950ff1d31a2cfa3adf0
database/sql: add SetMaxOpenConns

Update #4805

Add the ability to set an open connection limit.
Fixed case where the Conn finalCloser was being called with db.mu locked.
Added seperate benchmarks for each path for Exec and Query.
Replaced slice based idle pool with list based idle pool.

R=bradfitz
CC=golang-dev
https://golang.org/cl/10726044
src/pkg/database/sql/fakedb_test.go
src/pkg/database/sql/sql.go
src/pkg/database/sql/sql_test.go