summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1fc8ef7)
raw | patch | inline | side by side (parent: 1fc8ef7)
author | Florian Forster <octo@collectd.org> | |
Thu, 11 Jun 2015 15:48:55 +0000 (16:48 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Thu, 11 Jun 2015 15:48:55 +0000 (16:48 +0100) |
src/write_redis.c | patch | blob | history |
diff --git a/src/write_redis.c b/src/write_redis.c
index 29253524e5a041a1cea6664a67c6be31cc09d601..3b8addd2c02e63f9ea8725d2ba431d7253ffb36f 100644 (file)
--- a/src/write_redis.c
+++ b/src/write_redis.c
memset (value, 0, sizeof (value));
value_size = sizeof (value);
value_ptr = &value[0];
- format_values(value_ptr, value_size, ds, vl, 0);
+ 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)
{