mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +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.
|
// imageCache caches latest result of ListImages.
|
||||||
type imageCache struct {
|
type imageCache struct {
|
||||||
// sync.RWMutex is the mutex protects the image cache.
|
// sync.Mutex is the mutex protects the image cache.
|
||||||
sync.RWMutex
|
sync.Mutex
|
||||||
// images is the image cache.
|
// images is the image cache.
|
||||||
images []container.Image
|
images []container.Image
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user