mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Use Mutex for synchronization in imageCache
This commit is contained in:
parent
82bfa667ed
commit
f6edee0fe1
@ -107,8 +107,8 @@ type realImageGCManager struct {
|
||||
|
||||
// imageCache caches latest result of ListImages.
|
||||
type imageCache struct {
|
||||
// sync.RWMutex is the mutex protects the image cache.
|
||||
sync.RWMutex
|
||||
// sync.Mutex is the mutex protects the image cache.
|
||||
sync.Mutex
|
||||
// images is the image cache.
|
||||
images []container.Image
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user