From: Florian Forster Date: Sun, 22 Jun 2008 20:09:31 +0000 (+0200) Subject: src/rrd_daemon.c: enqueue_cache_item: Don't enqueue cache items without values. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=2cb028a6d9738594b6808186ecb4d704c2798a06;p=rrdtool.git src/rrd_daemon.c: enqueue_cache_item: Don't enqueue cache items without values. --- diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c index 5f25e15..61e1d9a 100644 --- a/src/rrd_daemon.c +++ b/src/rrd_daemon.c @@ -167,7 +167,7 @@ static void sig_term_handler (int s __attribute__((unused))) /* {{{ */ */ static int enqueue_cache_item (cache_item_t *ci) /* {{{ */ { - RRDD_LOG (LOG_DEBUG, "handle_request_update: Adding %s to the update queue.", + RRDD_LOG (LOG_DEBUG, "enqueue_cache_item: Adding %s to the update queue.", ci->file); if (ci == NULL) @@ -178,6 +178,9 @@ static int enqueue_cache_item (cache_item_t *ci) /* {{{ */ assert (ci->next == NULL); + if (ci->values_num == 0) + return (0); + if (cache_queue_tail == NULL) cache_queue_head = ci; else