summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2013-08-27 12:26:02 +0200
committerantirez <antirez@gmail.com>2013-08-27 12:26:02 +0200
commit0f32c37fc92b5a69cd9940c0dd1df9da6921a644 (patch)
treeff4a08c7780bd3bbe2b35636d3fcf451ee36456a
parentdf21771c698310d4bc6e47c3aaee8dd8abbbede8 (diff)
downloadredis-0f32c37fc92b5a69cd9940c0dd1df9da6921a644.tar.gz
Fix DEBUG SDSLEN after 2.8 back port.
-rw-r--r--src/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug.c b/src/debug.c
index b36bfddaf..7c1a277f7 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -308,7 +308,7 @@ void debugCommand(redisClient *c) {
val = dictGetVal(de);
key = dictGetKey(de);
- if (val->type != REDIS_STRING || !sdsEncodedObject(val)) {
+ if (val->type != REDIS_STRING || val->encoding != REDIS_ENCODING_RAW) {
addReplyError(c,"Not an sds encoded string.");
} else {
addReplyStatusFormat(c,