Commit 12cd67b7 authored by antirez's avatar antirez
Browse files

Minor aesthetic changes to #7135.

parent 2a3d933c
...@@ -955,11 +955,10 @@ size_t streamReplyWithRange(client *c, stream *s, streamID *start, streamID *end ...@@ -955,11 +955,10 @@ size_t streamReplyWithRange(client *c, stream *s, streamID *start, streamID *end
/* 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;
/* Group last id should be propagated only if NOACK was /* Group last ID should be propagated only if NOACK was
* specified, otherwise the last id would be included * specified, otherwise the last id will be included
* in XCLAIM. */ * in the propagation of XCLAIM itself. */
if (noack) if (noack) propagate_last_id = 1;
propagate_last_id = 1;
} }
/* Emit a two elements array for each item. The first is /* Emit a two elements array for each item. The first is
...@@ -1030,9 +1029,8 @@ size_t streamReplyWithRange(client *c, stream *s, streamID *start, streamID *end ...@@ -1030,9 +1029,8 @@ size_t streamReplyWithRange(client *c, stream *s, streamID *start, streamID *end
if (count && count == arraylen) break; if (count && count == arraylen) break;
} }
if (spi && propagate_last_id) { if (spi && propagate_last_id)
streamPropagateGroupID(c,spi->keyname,group,spi->groupname); streamPropagateGroupID(c,spi->keyname,group,spi->groupname);
}
streamIteratorStop(&si); streamIteratorStop(&si);
if (arraylen_ptr) setDeferredArrayLen(c,arraylen_ptr,arraylen); if (arraylen_ptr) setDeferredArrayLen(c,arraylen_ptr,arraylen);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment