Code

postgresql plugin: Do not open new connections during reinitialization.
authorSebastian Harl <sh@tokkee.org>
Tue, 14 Oct 2008 11:41:18 +0000 (13:41 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Thu, 16 Oct 2008 08:28:59 +0000 (10:28 +0200)
commitafca57287ae0c7b98e503be2a04270f06766c716
tree252b77a378ca0f7052097d6e60ab30fc4560377b
parent4cca3a1b70c8320c613bb249664a3a9f879ff8d5
postgresql plugin: Do not open new connections during reinitialization.

When reinitializing the plugin a new connection to all databases has been
opened. Now, we check if the connection already exists. In that case no new
connection will be opened but the existing connection will be pinged instead.

Thanks to Admin <collectd-info@internode.com.au> for finding and reporting
this.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/postgresql.c