X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_daemon.c;h=7201c52c4e12c86429f90240a3b01272d906f501;hb=c05cbd882ff8c3f9bdd1099cf5cb42ac08fae7a6;hp=8d26e0a6e86266f3dec0f0f35ce924e15ec7af59;hpb=7da84b6fd796d774d5db4aefb6615d33fa2711b4;p=rrdtool.git diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c index 8d26e0a..7201c52 100644 --- a/src/rrd_daemon.c +++ b/src/rrd_daemon.c @@ -1450,6 +1450,7 @@ static int handle_request_update (listen_socket_t *sock, /* {{{ */ wipe_ci_values(ci, now); ci->flags = CI_FLAGS_IN_TREE; + pthread_cond_init(&ci->flushed, NULL); pthread_mutex_lock(&cache_lock); g_tree_insert (cache_tree, (void *) ci->file, (void *) ci);