Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
c04082cf
Commit
c04082cf
authored
Jun 10, 2018
by
michael-grunder
Browse files
Abort in XGROUP if the key is not a stream
parent
be899b82
Changes
1
Show whitespace changes
Inline
Side-by-side
src/t_stream.c
View file @
c04082cf
...
...
@@ -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;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment