Test for ENCODING_SKIPLIST instead of ENCODING_RAW

This commit is contained in:
Pieter Noordhuis
2011-04-06 16:17:07 +02:00
parent 4cc4d1648b
commit 100ed062c0
7 changed files with 28 additions and 28 deletions

View File

@ -200,7 +200,7 @@ void sortCommand(redisClient *c) {
}
/* Destructively convert encoded sorted sets for SORT. */
if (sortval->type == REDIS_ZSET) zsetConvert(sortval, REDIS_ENCODING_RAW);
if (sortval->type == REDIS_ZSET) zsetConvert(sortval, REDIS_ENCODING_SKIPLIST);
/* Load the sorting vector with all the objects to sort */
switch(sortval->type) {