Improve streamReplyWithRange() top comment.

This commit is contained in:
antirez 2018-11-05 13:06:01 +01:00
parent fa675256c1
commit e7c579e1fe

View File

@ -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