mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
queueActionLocked requires write lock
This commit is contained in:
parent
1d5684a5f7
commit
3e69c5a9b8
4
pkg/client/cache/delta_fifo.go
vendored
4
pkg/client/cache/delta_fifo.go
vendored
@ -496,8 +496,8 @@ func (f *DeltaFIFO) Replace(list []interface{}, resourceVersion string) error {
|
||||
|
||||
// Resync will send a sync event for each item
|
||||
func (f *DeltaFIFO) Resync() error {
|
||||
f.lock.RLock()
|
||||
defer f.lock.RUnlock()
|
||||
f.lock.Lock()
|
||||
defer f.lock.Unlock()
|
||||
for _, k := range f.knownObjects.ListKeys() {
|
||||
obj, exists, err := f.knownObjects.GetByKey(k)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user