diff options
author | antirez <antirez@gmail.com> | 2013-08-27 12:26:02 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2013-08-27 12:51:56 +0200 |
commit | 6b61e94b181c16d0d98823864394eff92b5679c1 (patch) | |
tree | c03b031fd27b499d53b98fe528218d6743e13153 /src | |
parent | 84472a3565a4230bded455f0f39ffac9741fa7ab (diff) | |
download | redis-6b61e94b181c16d0d98823864394eff92b5679c1.tar.gz |
Fix DEBUG SDSLEN after 2.8 back port.
Diffstat (limited to 'src')
-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 3af9bdb89..70f30a3ab 100644 --- a/src/debug.c +++ b/src/debug.c @@ -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, |