From 2cb028a6d9738594b6808186ecb4d704c2798a06 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sun, 22 Jun 2008 22:09:31 +0200 Subject: [PATCH] src/rrd_daemon.c: enqueue_cache_item: Don't enqueue cache items without values. --- src/rrd_daemon.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.11.0