1
0
mirror of https://github.com/rancher/steve.git synced 2025-08-01 06:46:03 +00:00

Fix panic due to concurrent map writes (#669)

The same object is given to many HTTP request and they proceed to modify
that object.
This commit is contained in:
Tom Lebreux 2025-06-11 09:57:48 -06:00 committed by GitHub
parent cf97607be5
commit 1157865ea3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -464,7 +464,7 @@ func (l *ListOptionIndexer) notifyEvent(eventType watch.EventType, oldObj any, o
watcher.ch <- watch.Event{
Type: eventType,
Object: obj.(runtime.Object),
Object: obj.(runtime.Object).DeepCopyObject(),
}
}
l.watchersLock.RUnlock()