From 73d7955c6f53edf7597303bbdc605c84ba7a5954 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 25 Jun 2013 15:36:48 +0200 Subject: [PATCH] Flush the replication script cache after SCRIPT FLUSH. --- src/scripting.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scripting.c b/src/scripting.c index a794f34f..baf58527 100644 --- a/src/scripting.c +++ b/src/scripting.c @@ -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; -- GitLab