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
2cadef46
Commit
2cadef46
authored
Jun 12, 2018
by
antirez
Browse files
Streams: increment dirty counter for XGROUP SETID/DESTROY.
See issue #5005 comments.
parent
093ec57d
Changes
1
Show whitespace changes
Inline
Side-by-side
src/t_stream.c
View file @
2cadef46
...
@@ -1614,11 +1614,13 @@ NULL
...
@@ -1614,11 +1614,13 @@ NULL
}
}
cg
->
last_id
=
id
;
cg
->
last_id
=
id
;
addReply
(
c
,
shared
.
ok
);
addReply
(
c
,
shared
.
ok
);
server
.
dirty
++
;
}
else
if
(
!
strcasecmp
(
opt
,
"DESTROY"
)
&&
c
->
argc
==
4
)
{
}
else
if
(
!
strcasecmp
(
opt
,
"DESTROY"
)
&&
c
->
argc
==
4
)
{
if
(
cg
)
{
if
(
cg
)
{
raxRemove
(
s
->
cgroups
,(
unsigned
char
*
)
grpname
,
sdslen
(
grpname
),
NULL
);
raxRemove
(
s
->
cgroups
,(
unsigned
char
*
)
grpname
,
sdslen
(
grpname
),
NULL
);
streamFreeCG
(
cg
);
streamFreeCG
(
cg
);
addReply
(
c
,
shared
.
cone
);
addReply
(
c
,
shared
.
cone
);
server
.
dirty
++
;
}
else
{
}
else
{
addReply
(
c
,
shared
.
czero
);
addReply
(
c
,
shared
.
czero
);
}
}
...
...
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