mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
fix segmentfault when server start
This commit is contained in:
parent
6bb6a6d3a8
commit
45952df700
@ -2185,7 +2185,6 @@ void initServer(void) {
|
|||||||
if (server.cluster_enabled) clusterInit();
|
if (server.cluster_enabled) clusterInit();
|
||||||
replicationScriptCacheInit();
|
replicationScriptCacheInit();
|
||||||
scriptingInit(1);
|
scriptingInit(1);
|
||||||
ACLInit();
|
|
||||||
slowlogInit();
|
slowlogInit();
|
||||||
latencyMonitorInit();
|
latencyMonitorInit();
|
||||||
bioInit();
|
bioInit();
|
||||||
@ -4023,6 +4022,9 @@ int main(int argc, char **argv) {
|
|||||||
dictSetHashFunctionSeed((uint8_t*)hashseed);
|
dictSetHashFunctionSeed((uint8_t*)hashseed);
|
||||||
server.sentinel_mode = checkForSentinelMode(argc,argv);
|
server.sentinel_mode = checkForSentinelMode(argc,argv);
|
||||||
initServerConfig();
|
initServerConfig();
|
||||||
|
|
||||||
|
/* ACLInit should run before calling moduleInitModulesSystem */
|
||||||
|
ACLInit();
|
||||||
moduleInitModulesSystem();
|
moduleInitModulesSystem();
|
||||||
|
|
||||||
/* Store the executable path and arguments in a safe place in order
|
/* Store the executable path and arguments in a safe place in order
|
||||||
|
Loading…
x
Reference in New Issue
Block a user