Commit 29308077 authored by antirez's avatar antirez
Browse files

Flush the replication script cache after SCRIPT FLUSH.

parent 9faa6b9d
...@@ -1020,6 +1020,7 @@ void scriptCommand(redisClient *c) { ...@@ -1020,6 +1020,7 @@ void scriptCommand(redisClient *c) {
if (c->argc == 2 && !strcasecmp(c->argv[1]->ptr,"flush")) { if (c->argc == 2 && !strcasecmp(c->argv[1]->ptr,"flush")) {
scriptingReset(); scriptingReset();
addReply(c,shared.ok); addReply(c,shared.ok);
replicationScriptCacheFlush();
server.dirty++; /* Propagating this command is a good idea. */ server.dirty++; /* Propagating this command is a good idea. */
} else if (c->argc >= 2 && !strcasecmp(c->argv[1]->ptr,"exists")) { } else if (c->argc >= 2 && !strcasecmp(c->argv[1]->ptr,"exists")) {
int j; int j;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment