Fix DEBUG DIGEST, SORT and AOF rewrite

This commit is contained in:
Pieter Noordhuis
2011-03-14 13:30:06 +01:00
parent 9ec4ea20a7
commit dddf5335f4
4 changed files with 100 additions and 25 deletions

View File

@ -199,6 +199,9 @@ void sortCommand(redisClient *c) {
j++;
}
/* Destructively convert encoded sorted sets for SORT. */
if (sortval->type == REDIS_ZSET) zsetConvert(sortval, REDIS_ENCODING_RAW);
/* Load the sorting vector with all the objects to sort */
switch(sortval->type) {
case REDIS_LIST: vectorlen = listTypeLength(sortval); break;