ACL: load the defined users at server startup.

This commit is contained in:
antirez 2019-02-04 16:39:07 +01:00
parent e3c8db819b
commit b67e46953b

View File

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