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
5c5197fe
Unverified
Commit
5c5197fe
authored
Apr 26, 2019
by
Salvatore Sanfilippo
Committed by
GitHub
Apr 26, 2019
Browse files
Merge pull request #6013 from rouzier/fix/stream_iterator_init
Fix stream interator start and end key initialize
parents
2d450d13
3ccdcbc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_stream.c
View file @
5c5197fe
...
...
@@ -492,14 +492,14 @@ void streamIteratorStart(streamIterator *si, stream *s, streamID *start, streamI
streamEncodeID
(
si
->
start_key
,
start
);
}
else
{
si
->
start_key
[
0
]
=
0
;
si
->
start_key
[
0
]
=
0
;
si
->
start_key
[
1
]
=
0
;
}
if
(
end
)
{
streamEncodeID
(
si
->
end_key
,
end
);
}
else
{
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. */
...
...
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