authorize: add support for service accounts (#1374)

This commit is contained in:
Caleb Doxsey 2020-09-04 10:37:00 -06:00 committed by GitHub
parent eaf0dd4e67
commit 0a6796ff71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 236 additions and 51 deletions

View file

@ -390,6 +390,7 @@ func (srv *Server) getDB(recordType string, lock bool) (db storage.Backend, vers
if db == nil {
db, err = srv.newDB(recordType)
srv.byType[recordType] = db
defer srv.onTypechange.Broadcast()
}
if lock {
srv.mu.Unlock()