Code

rrdcached plugin: Register write/flush only if DaemonAddress has been given.
authorSebastian Harl <sh@tokkee.org>
Fri, 17 Jun 2011 08:25:48 +0000 (10:25 +0200)
committerSebastian Harl <sh@tokkee.org>
Fri, 17 Jun 2011 08:25:48 +0000 (10:25 +0200)
commitccc69cc64e79170e09eb3eae9cb9d2d22c6f06e6
treeb12d4502136b18c66cfa5c59ae55346c3eefdfce
parent887bc2aa36a2b48ab28b0b0138bd55411efe55e6
rrdcached plugin: Register write/flush only if DaemonAddress has been given.

Else, the write callback would remove itself on the first call. This
operation, however, is not thread-safe as access to the write list is not
synchronized. Thus, removing the callback at that point leads to random
segfaults.
src/rrdcached.c