SINTER/MEMBERS are now COW friendly, also some refactoring around was needed to get this result.

This commit is contained in:
antirez
2010-12-09 21:11:56 +01:00
parent a5be65f71c
commit 1b508da7ca
4 changed files with 118 additions and 41 deletions

View File

@ -222,7 +222,7 @@ void sortCommand(redisClient *c) {
} else if (sortval->type == REDIS_SET) {
setTypeIterator *si = setTypeInitIterator(sortval);
robj *ele;
while((ele = setTypeNext(si)) != NULL) {
while((ele = setTypeNextObject(si)) != NULL) {
vector[j].obj = ele;
vector[j].u.score = 0;
vector[j].u.cmpobj = NULL;