mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Merge pull request #30839 from lavalamp/fix
Automatic merge from submit-queue queueActionLocked requires write lock Fix https://github.com/kubernetes/minikube/issues/368 Fix part of #30759 Hopefully. On stack dumps I couldn't see who was fighting with this.
This commit is contained in:
commit
86340fc123
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
|
// Resync will send a sync event for each item
|
||||||
func (f *DeltaFIFO) Resync() error {
|
func (f *DeltaFIFO) Resync() error {
|
||||||
f.lock.RLock()
|
f.lock.Lock()
|
||||||
defer f.lock.RUnlock()
|
defer f.lock.Unlock()
|
||||||
for _, k := range f.knownObjects.ListKeys() {
|
for _, k := range f.knownObjects.ListKeys() {
|
||||||
obj, exists, err := f.knownObjects.GetByKey(k)
|
obj, exists, err := f.knownObjects.GetByKey(k)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user