X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrdtool.c;h=da4fcb8c51b2703c50aee78dc0c2298ce4f14096;hb=115ac52ece1897146dfb145d31cb0fdb6b0dbf8f;hp=b1d13ee3c19ee279c836741739b521359872c63b;hpb=e277e04ede1dc46861e0d71e204c881cec79af48;p=collectd.git diff --git a/src/rrdtool.c b/src/rrdtool.c index b1d13ee3..da4fcb8c 100644 --- a/src/rrdtool.c +++ b/src/rrdtool.c @@ -75,6 +75,7 @@ static const char *config_keys[] = { "CacheTimeout", "CacheFlush", + "CreateFilesAsync", "DataDir", "StepSize", "HeartBeat", @@ -102,7 +103,9 @@ static rrdcreate_config_t rrdcreate_config = /* timespans_num = */ 0, /* consolidation_functions = */ NULL, - /* consolidation_functions_num = */ 0 + /* consolidation_functions_num = */ 0, + + /* async = */ 0 }; /* XXX: If you need to lock both, cache_lock and queue_lock, at the same time, @@ -1008,6 +1011,13 @@ static int rrd_config (const char *key, const char *value) if (temp > 0) rrdcreate_config.heartbeat = temp; } + else if (strcasecmp ("CreateFilesAsync", key) == 0) + { + if (IS_TRUE (value)) + rrdcreate_config.async = 1; + else + rrdcreate_config.async = 0; + } else if (strcasecmp ("RRARows", key) == 0) { int tmp = atoi (value);