Merge pull request #561 from furdarius/reuse-conninfo-in-pool

Reuse pool.connInfo for createConnectionUnlocked method
pull/565/head
Jack Christensen 2019-07-18 15:06:59 -05:00 committed by GitHub
commit 6954c15ad0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ func (p *ConnPool) createConnection() (*Conn, error) {
func (p *ConnPool) createConnectionUnlocked() (*Conn, error) {
p.inProgressConnects++
p.cond.L.Unlock()
c, err := Connect(p.config)
c, err := connect(p.config, p.connInfo.DeepCopy())
p.cond.L.Lock()
p.inProgressConnects--