diff options
Diffstat (limited to 'src/redis.c')
-rw-r--r-- | src/redis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redis.c b/src/redis.c index 070aeb095..8f6eab6b2 100644 --- a/src/redis.c +++ b/src/redis.c @@ -457,7 +457,7 @@ int dictEncObjKeyCompare(void *privdata, const void *key1, unsigned int dictEncObjHash(const void *key) { robj *o = (robj*) key; - if (o->encoding == REDIS_ENCODING_RAW) { + if (sdsEncodedObject(o)) { return dictGenHashFunction(o->ptr, sdslen((sds)o->ptr)); } else { if (o->encoding == REDIS_ENCODING_INT) { |