projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6305bd
)
redis plugin: Report query errors
author
Pavel Rochnyack
<pavel2000@ngs.ru>
Sun, 17 Jun 2018 10:22:10 +0000
(17:22 +0700)
committer
Pavel Rochnyack
<pavel2000@ngs.ru>
Sun, 17 Jun 2018 12:13:39 +0000
(19:13 +0700)
src/redis.c
patch
|
blob
|
history
diff --git
a/src/redis.c
b/src/redis.c
index
f4de380
..
ca17e29
100644
(file)
--- a/
src/redis.c
+++ b/
src/redis.c
@@
-363,6
+363,10
@@
static int redis_handle_query(redisContext *rh, redis_node_t *rn,
return -1;
}
break;
+ case REDIS_REPLY_ERROR:
+ WARNING("redis plugin: Query `%s' failed: %s.", rq->query, rr->str);
+ freeReplyObject(rr);
+ return -1;
case REDIS_REPLY_ARRAY:
WARNING("redis plugin: Query `%s' should return string or integer. Arrays "
"are not supported.",