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
c9d86c2b
Commit
c9d86c2b
authored
Feb 16, 2018
by
antirez
Browse files
CG: More specific duplicated group error.
parent
9f60a6bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/t_stream.c
View file @
c9d86c2b
...
...
@@ -1391,7 +1391,8 @@ NULL
if
(
cg
)
{
addReply
(
c
,
shared
.
ok
);
}
else
{
addReplyError
(
c
,
"Consumer Group name already exists"
);
addReplySds
(
c
,
sdsnew
(
"-BUSYGROUP Consumer Group name already exists
\r\n
"
));
}
}
else
if
(
!
strcasecmp
(
opt
,
"SETID"
)
&&
c
->
argc
==
5
)
{
}
else
if
(
!
strcasecmp
(
opt
,
"DELGROUP"
)
&&
c
->
argc
==
4
)
{
...
...
tests/unit/type/stream-cgroups.tcl
0 → 100644
View file @
c9d86c2b
start_server
{
tags
{
"stream"
}
}
{
test
{
XGROUP CREATE: creation and duplicate group name detection
}
{
r DEL mystream
r XADD mystream * foo bar
r XGROUP CREATE mystream mygroup $
catch
{
r XGROUP CREATE mystream mygroup $
}
err
set err
}
{
BUSYGROUP*
}
}
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