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,