Merge branch 'collectd-5.2'
[collectd.git] / src / rrdcached.c
index 3c56565..0a98035 100644 (file)
@@ -48,7 +48,7 @@ static rrdcreate_config_t rrdcreate_config =
        /* consolidation_functions = */ NULL,
        /* consolidation_functions_num = */ 0,
 
-        /* async = */ 0
+       /* async = */ 0
 };
 
 /*
@@ -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);
     }
   }