summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2019-01-11 11:30:09 +0100
committerantirez <antirez@gmail.com>2019-01-11 11:30:09 +0100
commit7f8314760a764a1cfb7405b414e71fc6eba79d90 (patch)
tree964d4aa0715b410aa01ad86781cee0ee76cd1f7a
parent6078d85b525f6595893610c99efd8c47bf4b3137 (diff)
downloadredis-7f8314760a764a1cfb7405b414e71fc6eba79d90.tar.gz
ACL: modify comment from PR.
-rw-r--r--src/server.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server.c b/src/server.c
index 17d479744..a63b7522c 100644
--- a/src/server.c
+++ b/src/server.c
@@ -4022,9 +4022,8 @@ int main(int argc, char **argv) {
dictSetHashFunctionSeed((uint8_t*)hashseed);
server.sentinel_mode = checkForSentinelMode(argc,argv);
initServerConfig();
-
- /* ACLInit should run before calling moduleInitModulesSystem */
- ACLInit();
+ ACLInit(); /* The ACL subsystem must be initialized ASAP because the
+ basic networking code and client creation depends on it. */
moduleInitModulesSystem();
/* Store the executable path and arguments in a safe place in order