Merge pull request #6677 from guybe7/deocde_id_once

streamReplyWithRangeFromConsumerPEL: Redundant streamDecodeID
This commit is contained in:
Salvatore Sanfilippo 2020-02-27 18:09:48 +01:00 committed by GitHub
commit cf31602bce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1068,9 +1068,7 @@ size_t streamReplyWithRangeFromConsumerPEL(client *c, stream *s, streamID *start
* by the user by other means. In that case we signal it emitting
* the ID but then a NULL entry for the fields. */
addReplyArrayLen(c,2);
streamID id;
streamDecodeID(ri.key,&id);
addReplyStreamID(c,&id);
addReplyStreamID(c,&thisid);
addReplyNullArray(c);
} else {
streamNACK *nack = ri.data;