Skip to content

Commit c04082c

Browse files
Abort in XGROUP if the key is not a stream
1 parent be899b8 commit c04082c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/t_stream.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1576,7 +1576,7 @@ NULL
15761576
/* Lookup the key now, this is common for all the subcommands but HELP. */
15771577
if (c->argc >= 4) {
15781578
robj *o = lookupKeyWriteOrReply(c,c->argv[2],shared.nokeyerr);
1579-
if (o == NULL) return;
1579+
if (o == NULL || checkType(c,o,OBJ_STREAM)) return;
15801580
s = o->ptr;
15811581
grpname = c->argv[3]->ptr;
15821582

0 commit comments

Comments
 (0)