projects
/
redis.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Status replies converted in a special way like errors in the Lua <-> Redis conversion...
[redis.git]
/
src
/
sort.c
diff --git
a/src/sort.c
b/src/sort.c
index 1cf8932e3758c14d756d92dd0da5241b1ca49e05..ff275c958a22684ff7fbb1f92c1ce62ad3ca88f0 100644
(file)
--- a/
src/sort.c
+++ b/
src/sort.c
@@
-199,6
+199,9
@@
void sortCommand(redisClient *c) {
j++;
}
j++;
}
+ /* Destructively convert encoded sorted sets for SORT. */
+ if (sortval->type == REDIS_ZSET) zsetConvert(sortval, REDIS_ENCODING_SKIPLIST);
+
/* Load the sorting vector with all the objects to sort */
switch(sortval->type) {
case REDIS_LIST: vectorlen = listTypeLength(sortval); break;
/* Load the sorting vector with all the objects to sort */
switch(sortval->type) {
case REDIS_LIST: vectorlen = listTypeLength(sortval); break;