1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-25 06:26:50 +00:00

Merge pull request #403 from takmatsu/fix-lock

Fix doSchema lock issue
This commit is contained in:
Darren Shepherd
2022-01-07 13:39:12 -07:00
committed by GitHub

View File

@@ -327,11 +327,9 @@ func (s *Schemas) doSchema(version *APIVersion, name string, lock bool) *Schema
if lock {
s.Lock()
defer s.Unlock()
}
schemas, ok := s.schemasByPath[path]
if lock {
s.Unlock()
}
if !ok {
return nil
}