jssjr/collectd-write_graphite — pull request #12 by octo (2012-02-04 16:27:21+00:00)
Title: write_graphite plugin: Fix locking.

*wg_send_buffer()* is called from *wg_flush_nolock()*. When calling *wg_flush_nolock()*, the thread has to hold *cb->send_lock*. Locking it again will fail, but this condition is not checked for. Then the lock is released twice which may result in concurrency issues.