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
74f4f298
Commit
74f4f298
authored
Feb 04, 2013
by
Salvatore Sanfilippo
Browse files
Merge pull request #929 from ltnwgl/unstable
Fix a bug in srandmemberWithCountCommand()
parents
089cbe64
00274733
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_set.c
View file @
74f4f298
...
...
@@ -469,7 +469,7 @@ void srandmemberWithCountCommand(redisClient *c) {
* The number of requested elements is greater than the number of
* elements inside the set: simply return the whole set. */
if
(
count
>=
size
)
{
sunionDiffGenericCommand
(
c
,
c
->
argv
,
c
->
argc
-
1
,
NULL
,
REDIS_OP_UNION
);
sunionDiffGenericCommand
(
c
,
c
->
argv
+
1
,
1
,
NULL
,
REDIS_OP_UNION
);
return
;
}
...
...
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