mirror of
https://github.com/fluencelabs/redis
synced 2025-06-15 02:01:21 +00:00
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.
This commit is contained in:
@ -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 */
|
||||
|
Reference in New Issue
Block a user