mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
Remove useless var and check in zunionInterGenericCommand().
This commit is contained in:
parent
119813e968
commit
d74e422b5e
@ -1989,8 +1989,7 @@ void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) {
|
||||
if (setnum) {
|
||||
/* Our union is at least as large as the largest set.
|
||||
* Resize the dictionary ASAP to avoid useless rehashing. */
|
||||
int minlen = setnum ? zuiLength(&src[setnum-1]) : 0;
|
||||
dictExpand(accumulator,minlen);
|
||||
dictExpand(accumulator,zuiLength(&src[setnum-1]));
|
||||
}
|
||||
|
||||
/* Step 1: Create a dictionary of elements -> aggregated-scores
|
||||
|
Loading…
x
Reference in New Issue
Block a user