mirror of
https://github.com/fluencelabs/redis
synced 2025-05-12 02:37:11 +00:00
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.
This commit is contained in:
parent
545fe0c318
commit
8450d6e24d
@ -1476,6 +1476,7 @@ void initServer() {
|
||||
server.maxmemory_policy = REDIS_MAXMEMORY_NO_EVICTION;
|
||||
}
|
||||
|
||||
replicationScriptCacheInit();
|
||||
scriptingInit();
|
||||
slowlogInit();
|
||||
bioInit();
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user