mirror of
https://github.com/fluencelabs/redis
synced 2025-06-13 01:01:22 +00:00
Fix for ZUNIONSTORE bug when there is an empty set among input sets. Regression test added.
This commit is contained in:
@ -1550,7 +1550,7 @@ void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) {
|
||||
}
|
||||
} else if (op == REDIS_OP_UNION) {
|
||||
for (i = 0; i < setnum; i++) {
|
||||
if (zuiLength(&src[0]) == 0)
|
||||
if (zuiLength(&src[i]) == 0)
|
||||
continue;
|
||||
|
||||
while (zuiNext(&src[i],&zval)) {
|
||||
|
Reference in New Issue
Block a user