summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Benoish <guy.benoish@redislabs.com>2019-12-18 12:27:03 +0530
committerGuy Benoish <guy.benoish@redislabs.com>2019-12-18 12:27:37 +0530
commit5e0fe4c77c556255b738cecb330dc1bae060a3d0 (patch)
treea45a7c48991f5686152558ee7049e2f788cea5f1
parent14045adf9211179687ebd694197643a0fca0116a (diff)
downloadredis-5e0fe4c77c556255b738cecb330dc1bae060a3d0.tar.gz
streamReplyWithRangeFromConsumerPEL: Redundant streamDecodeID
-rw-r--r--src/t_stream.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/t_stream.c b/src/t_stream.c
index a499f7381..c35c9d1be 100644
--- a/src/t_stream.c
+++ b/src/t_stream.c
@@ -1043,9 +1043,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;