From 65c58da895b25ae06570d8a105485928915a657f Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 25 Feb 2013 21:08:15 +0100 Subject: [PATCH] rrdtool and rrdcached plugins: Don't update the file if ... ... it is being created asynchronously. --- src/rrdcached.c | 2 ++ src/rrdtool.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/rrdcached.c b/src/rrdcached.c index a37b4b50..0a980359 100644 --- a/src/rrdcached.c +++ b/src/rrdcached.c @@ -463,6 +463,8 @@ static int rc_write (const data_set_t *ds, const value_list_t *vl, filename); return (-1); } + else if (rrdcreate_config.async) + return (0); } } diff --git a/src/rrdtool.c b/src/rrdtool.c index a673879b..e7c48c0e 100644 --- a/src/rrdtool.c +++ b/src/rrdtool.c @@ -913,6 +913,8 @@ static int rrd_write (const data_set_t *ds, const value_list_t *vl, ds, vl, &rrdcreate_config); if (status != 0) return (-1); + else if (rrdcreate_config.async) + return (0); } else { -- 2.11.0