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
aa953b6e
Commit
aa953b6e
authored
Feb 05, 2016
by
Salvatore Sanfilippo
Browse files
Merge pull request #3059 from itamarhaber/keyspacenotif-lrem
Adds keyspace notifications for LREM
parents
5b7b2353
31a70a8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
aa953b6e
...
...
@@ -3866,7 +3866,7 @@ int redisSupervisedUpstart(void) {
return
0
;
}
serverLog
(
LL_NOTICE
,
"supervised by upstart, will stop to signal read
y
ness"
);
serverLog
(
LL_NOTICE
,
"supervised by upstart, will stop to signal read
i
ness"
);
raise
(
SIGSTOP
);
unsetenv
(
"UPSTART_JOB"
);
return
1
;
...
...
@@ -3890,7 +3890,7 @@ int redisSupervisedSystemd(void) {
return
0
;
}
serverLog
(
LL_NOTICE
,
"supervised by systemd, will signal read
y
ness"
);
serverLog
(
LL_NOTICE
,
"supervised by systemd, will signal read
i
ness"
);
if
((
fd
=
socket
(
AF_UNIX
,
SOCK_DGRAM
,
0
))
==
-
1
)
{
serverLog
(
LL_WARNING
,
"Can't connect to systemd socket %s"
,
notify_socket
);
...
...
src/t_list.c
View file @
aa953b6e
...
...
@@ -509,12 +509,17 @@ void lremCommand(client *c) {
}
listTypeReleaseIterator
(
li
);
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
);
if
(
removed
)
signalModifiedKey
(
c
->
db
,
c
->
argv
[
1
]);
}
/* 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