summaryrefslogtreecommitdiff
path: root/src/scripting.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2013-06-24 19:27:49 +0200
committerantirez <antirez@gmail.com>2013-06-24 19:27:49 +0200
commit82ea1c6f5d05cb016e1eb85c54fa5105be2ac0b6 (patch)
treea7bc5141de2d420757df1f3307dacd9f54dda8ac /src/scripting.c
parentf0bf5fd8c779d70a853de7b5eb165c6b3d863f69 (diff)
downloadredis-82ea1c6f5d05cb016e1eb85c54fa5105be2ac0b6.tar.gz
Move Replication Script Cache initialization in safer place.
It should be called just one time at startup and not every time the Lua scripting engine is re-initialized, otherwise memory is leaked.
Diffstat (limited to 'src/scripting.c')
-rw-r--r--src/scripting.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/scripting.c b/src/scripting.c
index f30956bd2..ff94ae165 100644
--- a/src/scripting.c
+++ b/src/scripting.c
@@ -655,10 +655,6 @@ void scriptingInit(void) {
* to global variables. */
scriptingEnableGlobalsProtection(lua);
- /* Initialize the Replication Script Cache for EVALSHA propagation to
- * slaves and AOF. */
- replicationScriptCacheInit();
-
server.lua = lua;
}