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: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F262%2Fhead;p=thirdparty%2Fcollectd.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 a37b4b507..0a9803599 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 a673879b1..e7c48c0e7 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 {