ACL: load ACL file at startup. Prevent silly configurations.

This commit is contained in:
antirez
2019-02-07 17:20:03 +01:00
parent db30727547
commit 80f987726d
3 changed files with 35 additions and 5 deletions

View File

@ -4908,11 +4908,7 @@ int main(int argc, char **argv) {
linuxMemoryWarnings();
#endif
moduleLoadFromQueue();
if (ACLLoadConfiguredUsers() == C_ERR) {
serverLog(LL_WARNING,
"Critical error while loading ACLs. Exiting.");
exit(1);
}
ACLLoadUsersAtStartup();
loadDataFromDisk();
if (server.cluster_enabled) {
if (verifyClusterConfigWithData() == C_ERR) {