Merge pull request #125920 from siyuanfoundation/bug

fix lock bug for componentGlobalsRegistry
This commit is contained in:
Kubernetes Prow Robot
2024-07-05 12:25:05 -07:00
committed by GitHub

View File

@@ -135,8 +135,8 @@ func NewComponentGlobalsRegistry() *componentGlobalsRegistry {
}
func (r *componentGlobalsRegistry) Reset() {
r.mutex.RLock()
defer r.mutex.RUnlock()
r.mutex.Lock()
defer r.mutex.Unlock()
r.componentGlobals = make(map[string]*ComponentGlobals)
r.emulationVersionConfig = nil
r.featureGatesConfig = nil