diff options
author | Salvatore Sanfilippo <antirez@gmail.com> | 2020-02-27 18:09:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-27 18:09:48 +0100 |
commit | cf31602bce353af831c045ff862e81642e60365f (patch) | |
tree | f8f78a9814f78ff25d0a165ca1dfae28478f7e2e | |
parent | 7e64aa80d8c222064e916b0cbda2d67dfabaddb7 (diff) | |
parent | 5e0fe4c77c556255b738cecb330dc1bae060a3d0 (diff) | |
download | redis-cf31602bce353af831c045ff862e81642e60365f.tar.gz |
Merge pull request #6677 from guybe7/deocde_id_once
streamReplyWithRangeFromConsumerPEL: Redundant streamDecodeID
-rw-r--r-- | src/t_stream.c | 4 |
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; |