aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql/sql_test.go
diff options
context:
space:
mode:
authorColin <me@colinking.co>2020-04-22 15:53:52 +0000
committerDaniel Theophanes <kardianos@gmail.com>2020-04-22 16:19:35 +0000
commit12579009b3f7eb6d137863d5ca87e295c9d88641 (patch)
treec76aa4f0818d48dc859fdf013b34dafab45ccc58 /src/database/sql/sql_test.go
parent0a00926481faaf40189d1d78e738584cb1735f40 (diff)
downloadgo-12579009b3f7eb6d137863d5ca87e295c9d88641.tar.xz
database/sql: count connections expired in foreground with MaxLifetimeClosed
Previously the connection pool would only count connections expired in the background connectionCleaner goroutine towards the MaxLifetimeClosed stat. This change increments the stat correctly when checking for expiry in when acquiring and releasing a connection. Fixes #38058 Change-Id: Id707ddd40a42a4c38658d5f2931da131647d6c29 GitHub-Last-Rev: 0f205ede439efa355a628b6112450f2ca9ced005 GitHub-Pull-Request: golang/go#38263 Reviewed-on: https://go-review.googlesource.com/c/go/+/227278 Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Daniel Theophanes <kardianos@gmail.com>
Diffstat (limited to 'src/database/sql/sql_test.go')
0 files changed, 0 insertions, 0 deletions