]> granicus.if.org Git - icinga2/commit
Fix deadlock in GraphiteWriter
authorMichael Insel <michael@insel.email>
Mon, 12 Nov 2018 19:09:44 +0000 (19:09 +0000)
committerMichael Friedrich <michael.friedrich@icinga.com>
Tue, 13 Nov 2018 08:13:55 +0000 (09:13 +0100)
commitf4f2d862e6d51c4fa4b2527960d4563dde91796c
tree6491b724149faa68ecf8e933eb28498de120a5cb
parenta1e30f6ef5f175f8ed8e6a4ba12abd7d674c7529
Fix deadlock in GraphiteWriter

This fixes a deadlock in the GraphiteWriter feature, which is visible
during the reload process. The reload thread waits for the
GraphiteWriter to finish, but the GraphiteWriter can't finish because
it's stuck in `SendMetric()` waiting for a lock which is hold by the
reload thread.
lib/perfdata/graphitewriter.cpp
lib/perfdata/graphitewriter.hpp