Commit dd1eefa4 authored by antirez's avatar antirez
Browse files

Fixed SINTER[STORE] problem related to the new copy on write safe iterator

parent 70bc5f77
...@@ -437,6 +437,7 @@ void sinterGenericCommand(redisClient *c, robj **setkeys, unsigned long setnum, ...@@ -437,6 +437,7 @@ void sinterGenericCommand(redisClient *c, robj **setkeys, unsigned long setnum,
si = setTypeInitIterator(sets[0]); si = setTypeInitIterator(sets[0]);
while((encoding = setTypeNext(si,&eleobj,&intobj)) != -1) { while((encoding = setTypeNext(si,&eleobj,&intobj)) != -1) {
for (j = 1; j < setnum; j++) { for (j = 1; j < setnum; j++) {
if (sets[j] == sets[0]) continue;
if (encoding == REDIS_ENCODING_INTSET) { if (encoding == REDIS_ENCODING_INTSET) {
/* intset with intset is simple... and fast */ /* intset with intset is simple... and fast */
if (sets[j]->encoding == REDIS_ENCODING_INTSET && if (sets[j]->encoding == REDIS_ENCODING_INTSET &&
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment