mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 16:40:50 +00:00
Flush the replication script cache after SCRIPT FLUSH.
This commit is contained in:
parent
882e36366f
commit
73d7955c6f
@ -1020,6 +1020,7 @@ void scriptCommand(redisClient *c) {
|
||||
if (c->argc == 2 && !strcasecmp(c->argv[1]->ptr,"flush")) {
|
||||
scriptingReset();
|
||||
addReply(c,shared.ok);
|
||||
replicationScriptCacheFlush();
|
||||
server.dirty++; /* Propagating this command is a good idea. */
|
||||
} else if (c->argc >= 2 && !strcasecmp(c->argv[1]->ptr,"exists")) {
|
||||
int j;
|
||||
|
Loading…
x
Reference in New Issue
Block a user