ACL: load the defined users at server startup.

This commit is contained in:
antirez 2019-02-04 16:39:07 +01:00
parent 500b3e128f
commit 623b17425e

View File

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