summaryrefslogtreecommitdiff
path: root/src/aof.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2013-06-24 18:57:31 +0200
committerantirez <antirez@gmail.com>2013-06-24 18:57:31 +0200
commitf0bf5fd8c779d70a853de7b5eb165c6b3d863f69 (patch)
tree1edd866ce230acfc050aab6ed627774e298cc176 /src/aof.c
parent94ec7db47067ce8644e800b669ced032095747f3 (diff)
downloadredis-f0bf5fd8c779d70a853de7b5eb165c6b3d863f69.tar.gz
Use the RSC to replicate EVALSHA unmodified.
This commit uses the Replication Script Cache in order to avoid translating EVALSHA into EVAL whenever possible for both the AOF and slaves.
Diffstat (limited to 'src/aof.c')
-rw-r--r--src/aof.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/aof.c b/src/aof.c
index 9e602ce01..9ad85c536 100644
--- a/src/aof.c
+++ b/src/aof.c
@@ -998,6 +998,7 @@ int rewriteAppendOnlyFileBackground(void) {
* accumulated by the parent into server.aof_rewrite_buf will start
* with a SELECT statement and it will be safe to merge. */
server.aof_selected_db = -1;
+ replicationScriptCacheFlush();
return REDIS_OK;
}
return REDIS_OK; /* unreached */