Fix DEBUG SDSLEN after 2.8 back port.

This commit is contained in:
antirez 2013-08-27 12:26:02 +02:00
parent df21771c69
commit 0f32c37fc9

View File

@ -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,