Skip to content

Commit

Permalink
Abort in XGROUP if the key is not a stream
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-grunder committed Jun 10, 2018
1 parent be899b8 commit c04082c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/t_stream.c
Expand Up @@ -1576,7 +1576,7 @@ NULL
/* Lookup the key now, this is common for all the subcommands but HELP. */
if (c->argc >= 4) {
robj *o = lookupKeyWriteOrReply(c,c->argv[2],shared.nokeyerr);
if (o == NULL) return;
if (o == NULL || checkType(c,o,OBJ_STREAM)) return;
s = o->ptr;
grpname = c->argv[3]->ptr;

Expand Down

2 comments on commit c04082c

@HAHASHAO01
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how to uses the code?

@Gaurav28102
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it fixed ?

Please sign in to comment.