]> Cypherpunks repositories - gostls13.git/commit
database/sql: add additional Stats to DBStats
authorDaniel Theophanes <kardianos@gmail.com>
Fri, 20 Apr 2018 21:22:18 +0000 (14:22 -0700)
committerDaniel Theophanes <kardianos@gmail.com>
Fri, 11 May 2018 14:52:58 +0000 (14:52 +0000)
commitd89ea4100632ccfc1e5dbaf0b95f9f1e9f5a29f9
tree80dd4775e15b2df3bf632b515b7352aeca3010c0
parente405c9cca34d76a3d5382086302d6f41c362c465
database/sql: add additional Stats to DBStats

Provide better statistics for the database pool. Add counters
for waiting on the pool and closes. Too much waiting or too many
connection closes could indicate a problem.

Fixes #24683
Fixes #22138

Change-Id: I9e1e32a0487edf41c566b8d9c07cb55e04078fec
Reviewed-on: https://go-review.googlesource.com/108536
Run-TryBot: Daniel Theophanes <kardianos@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/database/sql/sql.go