Skip to content

Commit

Permalink
Fix DEBUG SDSLEN after 2.8 back port.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Aug 27, 2013
1 parent 84472a3 commit 6b61e94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/debug.c
Expand Up @@ -306,7 +306,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,
Expand Down

0 comments on commit 6b61e94

Please sign in to comment.