[collectd] [PATCH] mysql plugin: add support for multiple databases

Florian Forster octo at verplant.org
Tue Mar 17 14:34:54 CET 2009


Hi Doug and Sebastian,

On Tue, Mar 17, 2009 at 10:05:32AM +0100, Florian Forster wrote:
> I think we can safe ourselves some trouble if we just mark the legacy
> database as such, i. e. introduce a field such as `int legacy;' which
> we will set to non-zero if this database has been configured with the
> legacy code.

I've changed the configuration parsing a little. Instead of using a new
member to keep track of this legacy mode, I used the `instance' field:
If it is NULL, legacy mode is in action.

I've done only very rudimentary testing, but it worked for me..

Regards,
-octo
-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20090317/4125a3e1/attachment.pgp 


More information about the collectd mailing list