Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
8b9d9d84
Commit
8b9d9d84
authored
Jun 06, 2014
by
antirez
Browse files
Remove useless var and check in zunionInterGenericCommand().
parent
932cc3eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_zset.c
View file @
8b9d9d84
...
@@ -1989,8 +1989,7 @@ void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) {
...
@@ -1989,8 +1989,7 @@ void zunionInterGenericCommand(redisClient *c, robj *dstkey, int op) {
if (setnum) {
if (setnum) {
/* Our union is at least as large as the largest set.
/* Our union is at least as large as the largest set.
* Resize the dictionary ASAP to avoid useless rehashing. */
* Resize the dictionary ASAP to avoid useless rehashing. */
int minlen = setnum ? zuiLength(&src[setnum-1]) : 0;
dictExpand(accumulator,zuiLength(&src[setnum-1]));
dictExpand(accumulator,minlen);
}
}
/* Step 1: Create a dictionary of elements -> aggregated-scores
/* Step 1: Create a dictionary of elements -> aggregated-scores
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment