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
19ae8094
Commit
19ae8094
authored
Apr 19, 2018
by
antirez
Browse files
Streams: XADD, handle signaling of write in different ways.
parent
aba76320
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_stream.c
View file @
19ae8094
...
...
@@ -2019,6 +2019,9 @@ void xdelCommand(client *c) {
streamParseIDOrReply
(
c
,
c
->
argv
[
j
],
&
id
,
0
);
/* Retval already checked. */
deleted
+=
streamDeleteItem
(
s
,
&
id
);
}
signalModifiedKey
(
c
->
db
,
c
->
argv
[
1
]);
notifyKeyspaceEvent
(
NOTIFY_STREAM
,
"xdel"
,
c
->
argv
[
1
],
c
->
db
->
id
);
server
.
dirty
+=
deleted
;
addReplyLongLong
(
c
,
deleted
);
}
/* XINFO CONSUMERS key group
...
...
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