Fixed users unlock in ACL LOAD command handler

This commit is contained in:
Kelvin Clement Mwinuka
2024-05-19 04:28:06 +08:00
parent c634b1b20e
commit a9c11adcd6
6 changed files with 930 additions and 830 deletions

View File

@@ -373,7 +373,7 @@ func handleLoad(params internal.HandlerFuncParams) ([]byte, error) {
}
acl.LockUsers()
defer acl.RUnlockUsers()
defer acl.UnlockUsers()
f, err := os.Open(acl.Config.AclConfig)
if err != nil {