X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Frrdcached.c;h=e77be2dd29eddd6af3b2674e35a2ffec967a3cb5;hb=9c3ed6462c15fd1cb664cd0ec2a5efb289aa1af6;hp=33f05e737c579b179f3202080ca1256c5b64d3e0;hpb=dc61df5bf2ec9fe2c2aea6142505a73b3406d8e3;p=collectd.git diff --git a/src/rrdcached.c b/src/rrdcached.c index 33f05e73..e77be2dd 100644 --- a/src/rrdcached.c +++ b/src/rrdcached.c @@ -46,7 +46,9 @@ static rrdcreate_config_t rrdcreate_config = /* timespans_num = */ 0, /* consolidation_functions = */ NULL, - /* consolidation_functions_num = */ 0 + /* consolidation_functions_num = */ 0, + + /* async = */ 0 }; /* @@ -239,6 +241,8 @@ static int rc_config (oconfig_item_t *ci) status = cf_util_get_string (child, &daemon_address); else if (strcasecmp ("CreateFiles", key) == 0) status = cf_util_get_boolean (child, &config_create_files); + else if (strcasecmp ("CreateFilesAsync", key) == 0) + status = cf_util_get_boolean (child, &rrdcreate_config.async); else if (strcasecmp ("CollectStatistics", key) == 0) status = cf_util_get_boolean (child, &config_collect_stats); else if (strcasecmp ("StepSize", key) == 0) @@ -456,6 +460,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); } }