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
b02e81be
You need to sign in or sign up before continuing.
Commit
b02e81be
authored
May 15, 2011
by
antirez
Browse files
Fixed SINTER[STORE] problem related to the new copy on write safe iterator
parent
430719ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_set.c
View file @
b02e81be
...
@@ -433,6 +433,7 @@ void sinterGenericCommand(redisClient *c, robj **setkeys, unsigned long setnum,
...
@@ -433,6 +433,7 @@ void sinterGenericCommand(redisClient *c, robj **setkeys, unsigned long setnum,
si
=
setTypeInitIterator
(
sets
[
0
]);
si
=
setTypeInitIterator
(
sets
[
0
]);
while
((
encoding
=
setTypeNext
(
si
,
&
eleobj
,
&
intobj
))
!=
-
1
)
{
while
((
encoding
=
setTypeNext
(
si
,
&
eleobj
,
&
intobj
))
!=
-
1
)
{
for
(
j
=
1
;
j
<
setnum
;
j
++
)
{
for
(
j
=
1
;
j
<
setnum
;
j
++
)
{
if
(
sets
[
j
]
==
sets
[
0
])
continue
;
if
(
encoding
==
REDIS_ENCODING_INTSET
)
{
if
(
encoding
==
REDIS_ENCODING_INTSET
)
{
/* intset with intset is simple... and fast */
/* intset with intset is simple... and fast */
if
(
sets
[
j
]
->
encoding
==
REDIS_ENCODING_INTSET
&&
if
(
sets
[
j
]
->
encoding
==
REDIS_ENCODING_INTSET
&&
...
...
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