mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
Abort in XGROUP if the key is not a stream
This commit is contained in:
parent
be899b824e
commit
c04082cf13
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user