From 0f32c37fc92b5a69cd9940c0dd1df9da6921a644 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 27 Aug 2013 12:26:02 +0200 Subject: [PATCH] Fix DEBUG SDSLEN after 2.8 back port. --- src/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.c b/src/debug.c index b36bfdda..7c1a277f 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,