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
09d1849e
Commit
09d1849e
authored
Nov 05, 2018
by
antirez
Browse files
Improve streamReplyWithRange() top comment.
parent
bdf6306f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_stream.c
View file @
09d1849e
...
@@ -847,11 +847,15 @@ void streamPropagateGroupID(client *c, robj *key, streamCG *group, robj *groupna
...
@@ -847,11 +847,15 @@ void streamPropagateGroupID(client *c, robj *key, streamCG *group, robj *groupna
decrRefCount
(
argv
[
4
]);
decrRefCount
(
argv
[
4
]);
}
}
/* Send the specified range to the client 'c'. The range the client will
/* Send the stream items in the specified range to the client 'c'. The range
* receive is between start and end inclusive, if 'count' is non zero, no more
* the client will receive is between start and end inclusive, if 'count' is
* than 'count' elements are sent. The 'end' pointer can be NULL to mean that
* non zero, no more than 'count' elements are sent.
* we want all the elements from 'start' till the end of the stream. If 'rev'
*
* is non zero, elements are produced in reversed order from end to start.
* The 'end' pointer can be NULL to mean that we want all the elements from
* 'start' till the end of the stream. If 'rev' is non zero, elements are
* produced in reversed order from end to start.
*
* The function returns the number of entries emitted.
*
*
* If group and consumer are not NULL, the function performs additional work:
* If group and consumer are not NULL, the function performs additional work:
* 1. It updates the last delivered ID in the group in case we are
* 1. It updates the last delivered ID in the group in case we are
...
...
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