Flush the replication script cache after SCRIPT FLUSH.

This commit is contained in:
antirez 2013-06-25 15:36:48 +02:00
parent 882e36366f
commit 73d7955c6f

View File

@ -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;