From: Florian Forster Date: Mon, 25 Feb 2013 20:08:15 +0000 (+0100) Subject: rrdtool and rrdcached plugins: Don't update the file if ... X-Git-Tag: collectd-5.3.0~37^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=65c58da895b25ae06570d8a105485928915a657f;p=collectd.git rrdtool and rrdcached plugins: Don't update the file if ... ... it is being created asynchronously. --- 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 {