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
3cae5f03
Commit
3cae5f03
authored
Mar 20, 2018
by
antirez
Browse files
CG: XGROUP CREATE/DELCONUSMER replication.
parent
0b58ad30
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_stream.c
View file @
3cae5f03
...
...
@@ -1496,6 +1496,7 @@ NULL
streamCG
*
cg
=
streamCreateCG
(
s
,
grpname
,
sdslen
(
grpname
),
&
id
);
if
(
cg
)
{
addReply
(
c
,
shared
.
ok
);
server
.
dirty
++
;
}
else
{
addReplySds
(
c
,
sdsnew
(
"-BUSYGROUP Consumer Group name already exists
\r\n
"
));
...
...
@@ -1507,6 +1508,7 @@ NULL
* that were yet associated with such a consumer. */
long
long
pending
=
streamDelConsumer
(
cg
,
c
->
argv
[
4
]
->
ptr
);
addReplyLongLong
(
c
,
pending
);
server
.
dirty
++
;
}
else
if
(
!
strcasecmp
(
opt
,
"HELP"
))
{
addReplyHelp
(
c
,
help
);
}
else
{
...
...
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