diff options
Diffstat (limited to 'src/t_hash.c')
-rw-r--r-- | src/t_hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/t_hash.c b/src/t_hash.c index aa021b038..e21ee1f1d 100644 --- a/src/t_hash.c +++ b/src/t_hash.c @@ -14,7 +14,7 @@ void hashTypeTryConversion(robj *o, robj **argv, int start, int end) { if (o->encoding != REDIS_ENCODING_ZIPLIST) return; for (i = start; i <= end; i++) { - if (argv[i]->encoding == REDIS_ENCODING_RAW && + if (sdsEncodedObject(argv[i]) && sdslen(argv[i]->ptr) > server.hash_max_ziplist_value) { hashTypeConvert(o, REDIS_ENCODING_HT); |