mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
Merge pull request #3059 from itamarhaber/keyspacenotif-lrem
Adds keyspace notifications for LREM
This commit is contained in:
commit
aa953b6ec3
@ -3866,7 +3866,7 @@ int redisSupervisedUpstart(void) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
serverLog(LL_NOTICE, "supervised by upstart, will stop to signal readyness");
|
||||
serverLog(LL_NOTICE, "supervised by upstart, will stop to signal readiness");
|
||||
raise(SIGSTOP);
|
||||
unsetenv("UPSTART_JOB");
|
||||
return 1;
|
||||
@ -3890,7 +3890,7 @@ int redisSupervisedSystemd(void) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
serverLog(LL_NOTICE, "supervised by systemd, will signal readyness");
|
||||
serverLog(LL_NOTICE, "supervised by systemd, will signal readiness");
|
||||
if ((fd = socket(AF_UNIX, SOCK_DGRAM, 0)) == -1) {
|
||||
serverLog(LL_WARNING,
|
||||
"Can't connect to systemd socket %s", notify_socket);
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user