Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
b46271cc
Commit
b46271cc
authored
Jun 06, 2014
by
antirez
Browse files
Remove useless var and check in zunionInterGenericCommand().
parent
5e88bd05
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_zset.c
View file @
b46271cc
...
...
@@ -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
...
...
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