Merge pull request #6361 from PierreF/cluster-pool-hang

Fix cluster/pool release of connection
pull/6470/head
Jason Wilder 2016-04-25 14:12:06 -06:00
commit 9a3a52a37c
2 changed files with 2 additions and 0 deletions

View File

@ -38,6 +38,7 @@
- [#6458](https://github.com/influxdata/influxdb/pull/6458): Make it clear when the CLI version is unknown.
- [#3883](https://github.com/influxdata/influxdb/issues/3883): Improve query sanitization to prevent a password leak in the logs.
- [#6462](https://github.com/influxdata/influxdb/pull/6462): Add safer locking to CreateFieldIfNotExists
- [#6361](https://github.com/influxdata/influxdb/pull/6361): Fix cluster/pool release of connection
## v0.12.2 [2016-04-20]

View File

@ -132,6 +132,7 @@ func (c *boundedPool) put(conn net.Conn) error {
return nil
default:
// pool is full, close passed connection
atomic.AddInt32(&c.total, -1)
return conn.Close()
}
}