summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2020-02-27 18:09:48 +0100
committerGitHub <noreply@github.com>2020-02-27 18:09:48 +0100
commitcf31602bce353af831c045ff862e81642e60365f (patch)
treef8f78a9814f78ff25d0a165ca1dfae28478f7e2e
parent7e64aa80d8c222064e916b0cbda2d67dfabaddb7 (diff)
parent5e0fe4c77c556255b738cecb330dc1bae060a3d0 (diff)
downloadredis-cf31602bce353af831c045ff862e81642e60365f.tar.gz
Merge pull request #6677 from guybe7/deocde_id_once
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 e1efc6bca..557d1d642 100644
--- a/src/t_stream.c
+++ b/src/t_stream.c
@@ -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;