Skip to content

Commit

Permalink
Fixed SINTER[STORE] problem related to the new copy on write safe ite…
Browse files Browse the repository at this point in the history
…rator
  • Loading branch information
antirez committed May 15, 2011
1 parent 430719c commit b02e81b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/t_set.c
Expand Up @@ -433,6 +433,7 @@ void sinterGenericCommand(redisClient *c, robj **setkeys, unsigned long setnum,
si = setTypeInitIterator(sets[0]);
while((encoding = setTypeNext(si,&eleobj,&intobj)) != -1) {
for (j = 1; j < setnum; j++) {
if (sets[j] == sets[0]) continue;
if (encoding == REDIS_ENCODING_INTSET) {
/* intset with intset is simple... and fast */
if (sets[j]->encoding == REDIS_ENCODING_INTSET &&
Expand Down

0 comments on commit b02e81b

Please sign in to comment.