Merge pull request #78626 from tedyu/img-cache-mutex
Use Mutex for synchronization in imageCache
This commit is contained in:
commit
11abb58a5b
@ -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