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
593cf598
Commit
593cf598
authored
Feb 02, 2016
by
Itamar Haber
Committed by
antirez
Feb 05, 2016
Browse files
Adds keyspace notifications for lrem
parent
92fd7dac
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_list.c
View file @
593cf598
...
@@ -678,9 +678,17 @@ void lremCommand(redisClient *c) {
...
@@ -678,9 +678,17 @@ void lremCommand(redisClient *c) {
if
(
subject
->
encoding
==
REDIS_ENCODING_ZIPLIST
)
if
(
subject
->
encoding
==
REDIS_ENCODING_ZIPLIST
)
decrRefCount
(
obj
);
decrRefCount
(
obj
);
if
(
listTypeLength
(
subject
)
==
0
)
dbDelete
(
c
->
db
,
c
->
argv
[
1
]);
if
(
removed
)
{
signalModifiedKey
(
c
->
db
,
c
->
argv
[
1
]);
notifyKeyspaceEvent
(
NOTIFY_GENERIC
,
"lrem"
,
c
->
argv
[
1
],
c
->
db
->
id
);
}
if
(
listTypeLength
(
subject
)
==
0
)
{
dbDelete
(
c
->
db
,
c
->
argv
[
1
]);
notifyKeyspaceEvent
(
NOTIFY_GENERIC
,
"del"
,
c
->
argv
[
1
],
c
->
db
->
id
);
}
addReplyLongLong
(
c
,
removed
);
addReplyLongLong
(
c
,
removed
);
if
(
removed
)
signalModifiedKey
(
c
->
db
,
c
->
argv
[
1
]);
}
}
/* This is the semantic of this command:
/* This is the semantic of this command:
...
...
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