2
0

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

Reuse pool.connInfo for createConnectionUnlocked method
This commit is contained in:
Jack Christensen
2019-07-18 15:06:59 -05:00
committed by GitHub
+1 -1
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--