write_mongodb plugin: Fix reconnection behavior.
authorFlorian Forster <octo@collectd.org>
Fri, 9 Mar 2012 15:58:15 +0000 (16:58 +0100)
committerFlorian Forster <octo@collectd.org>
Fri, 9 Mar 2012 15:58:15 +0000 (16:58 +0100)
commit2c4c6600fdc06ec2904459bb019b99e4932def28
treef8ea8b07da57fda33161955a85f0634a4b16e9cf
parent8c08b696bfab56a7040ac569ce1d1c7a0e126d14
write_mongodb plugin: Fix reconnection behavior.

The previous code would never detect a disconnect and act appropriately. In the
process, manual tracking of the connection state is removed in favor of
mongo_is_connected().
src/write_mongodb.c