Merge pull request #117154 from p0lyn0mial/upstream-cacher-size-rlock
watchcache: currentCapacity acquires a read lock
This commit is contained in:
@@ -608,8 +608,8 @@ func (w *watchCache) Resync() error {
|
||||
}
|
||||
|
||||
func (w *watchCache) currentCapacity() int {
|
||||
w.Lock()
|
||||
defer w.Unlock()
|
||||
w.RLock()
|
||||
defer w.RUnlock()
|
||||
return w.capacity
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user