Merge remote-tracking branch 'github/pr/1082'
[collectd.git] / src / write_redis.c
index dfa031c..24bcfc8 100644 (file)
@@ -112,7 +112,10 @@ static int wr_write (const data_set_t *ds, /* {{{ */
 
 #undef APPEND
 
+  status = format_values (value_ptr, value_size, ds, vl, /* store rates = */ 0);
   pthread_mutex_lock (&node->lock);
+  if (status != 0)
+    return (status);
 
   if (node->conn == NULL)
   {