Commit 45952df7 authored by charsyam's avatar charsyam
Browse files

fix segmentfault when server start

parent 6bb6a6d3
......@@ -2185,7 +2185,6 @@ void initServer(void) {
if (server.cluster_enabled) clusterInit();
replicationScriptCacheInit();
scriptingInit(1);
ACLInit();
slowlogInit();
latencyMonitorInit();
bioInit();
......@@ -4023,6 +4022,9 @@ int main(int argc, char **argv) {
dictSetHashFunctionSeed((uint8_t*)hashseed);
server.sentinel_mode = checkForSentinelMode(argc,argv);
initServerConfig();
/* ACLInit should run before calling moduleInitModulesSystem */
ACLInit();
moduleInitModulesSystem();
/* Store the executable path and arguments in a safe place in order
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment