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
3ccdcbc0
Commit
3ccdcbc0
authored
Apr 11, 2019
by
James Rouzier
Browse files
Fix start and end key initialize
parent
d044e33c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_stream.c
View file @
3ccdcbc0
...
@@ -492,14 +492,14 @@ void streamIteratorStart(streamIterator *si, stream *s, streamID *start, streamI
...
@@ -492,14 +492,14 @@ void streamIteratorStart(streamIterator *si, stream *s, streamID *start, streamI
streamEncodeID
(
si
->
start_key
,
start
);
streamEncodeID
(
si
->
start_key
,
start
);
}
else
{
}
else
{
si
->
start_key
[
0
]
=
0
;
si
->
start_key
[
0
]
=
0
;
si
->
start_key
[
0
]
=
0
;
si
->
start_key
[
1
]
=
0
;
}
}
if
(
end
)
{
if
(
end
)
{
streamEncodeID
(
si
->
end_key
,
end
);
streamEncodeID
(
si
->
end_key
,
end
);
}
else
{
}
else
{
si
->
end_key
[
0
]
=
UINT64_MAX
;
si
->
end_key
[
0
]
=
UINT64_MAX
;
si
->
end_key
[
0
]
=
UINT64_MAX
;
si
->
end_key
[
1
]
=
UINT64_MAX
;
}
}
/* Seek the correct node in the radix tree. */
/* Seek the correct node in the radix tree. */
...
...
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