Merge commit 'e628f94436f2ffb38dd6305f18956f309838a8d6' into redis_6_merge
Former-commit-id: 2941792a85653258a36f8eb02189132ec7835242
This commit is contained in:
commit
7a6933bb15
@ -5048,6 +5048,7 @@ void restoreCommand(client *c) {
|
|||||||
}
|
}
|
||||||
objectSetLRUOrLFU(obj,lfu_freq,lru_idle,lru_clock,1000);
|
objectSetLRUOrLFU(obj,lfu_freq,lru_idle,lru_clock,1000);
|
||||||
signalModifiedKey(c->db,c->argv[1]);
|
signalModifiedKey(c->db,c->argv[1]);
|
||||||
|
notifyKeyspaceEvent(NOTIFY_GENERIC,"restore",c->argv[1],c->db->id);
|
||||||
addReply(c,shared.ok);
|
addReply(c,shared.ok);
|
||||||
g_pserver->dirty++;
|
g_pserver->dirty++;
|
||||||
}
|
}
|
||||||
@ -5396,6 +5397,7 @@ try_again:
|
|||||||
/* No COPY option: remove the local key, signal the change. */
|
/* No COPY option: remove the local key, signal the change. */
|
||||||
dbDelete(c->db,kv[j]);
|
dbDelete(c->db,kv[j]);
|
||||||
signalModifiedKey(c->db,kv[j]);
|
signalModifiedKey(c->db,kv[j]);
|
||||||
|
notifyKeyspaceEvent(NOTIFY_GENERIC,"del",kv[j],c->db->id);
|
||||||
g_pserver->dirty++;
|
g_pserver->dirty++;
|
||||||
|
|
||||||
/* Populate the argument vector to replace the old one. */
|
/* Populate the argument vector to replace the old one. */
|
||||||
|
@ -6363,7 +6363,7 @@ int moduleUnregisterUsedAPI(RedisModule *module) {
|
|||||||
RedisModule *used = (RedisModule*)ln->value;
|
RedisModule *used = (RedisModule*)ln->value;
|
||||||
listNode *ln = listSearchKey(used->usedby,module);
|
listNode *ln = listSearchKey(used->usedby,module);
|
||||||
if (ln) {
|
if (ln) {
|
||||||
listDelNode(module->usingMods,ln);
|
listDelNode(used->usedby,ln);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6969,3 +6969,4 @@ int main(int argc, char **argv) {
|
|||||||
return noninteractive(argc,convertToSds(argc,argv));
|
return noninteractive(argc,convertToSds(argc,argv));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user