diff options
author | antirez <antirez@gmail.com> | 2013-08-27 12:26:02 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2013-08-27 12:26:02 +0200 |
commit | 0f32c37fc92b5a69cd9940c0dd1df9da6921a644 (patch) | |
tree | ff4a08c7780bd3bbe2b35636d3fcf451ee36456a | |
parent | df21771c698310d4bc6e47c3aaee8dd8abbbede8 (diff) | |
download | redis-0f32c37fc92b5a69cd9940c0dd1df9da6921a644.tar.gz |
Fix DEBUG SDSLEN after 2.8 back port.
-rw-r--r-- | src/debug.c | 2 |
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, |