mirror of
https://github.com/fluencelabs/redis
synced 2025-04-25 10:32:14 +00:00
Merge pull request #7042 from guybe7/stream_cg_last_id_fix
streamReplyWithRange: Redundant XSETIDs to replica
This commit is contained in:
commit
babada8b5f
@ -935,7 +935,6 @@ size_t streamReplyWithRange(client *c, stream *s, streamID *start, streamID *end
|
|||||||
streamIterator si;
|
streamIterator si;
|
||||||
int64_t numfields;
|
int64_t numfields;
|
||||||
streamID id;
|
streamID id;
|
||||||
int propagate_last_id = 0;
|
|
||||||
|
|
||||||
/* If the client is asking for some history, we serve it using a
|
/* If the client is asking for some history, we serve it using a
|
||||||
* different function, so that we return entries *solely* from its
|
* different function, so that we return entries *solely* from its
|
||||||
@ -951,6 +950,8 @@ size_t streamReplyWithRange(client *c, stream *s, streamID *start, streamID *end
|
|||||||
arraylen_ptr = addReplyDeferredLen(c);
|
arraylen_ptr = addReplyDeferredLen(c);
|
||||||
streamIteratorStart(&si,s,start,end,rev);
|
streamIteratorStart(&si,s,start,end,rev);
|
||||||
while(streamIteratorGetID(&si,&id,&numfields)) {
|
while(streamIteratorGetID(&si,&id,&numfields)) {
|
||||||
|
int propagate_last_id = 0;
|
||||||
|
|
||||||
/* Update the group last_id if needed. */
|
/* Update the group last_id if needed. */
|
||||||
if (group && streamCompareID(&id,&group->last_id) > 0) {
|
if (group && streamCompareID(&id,&group->last_id) > 0) {
|
||||||
group->last_id = id;
|
group->last_id = id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user