Merge pull request #78626 from tedyu/img-cache-mutex

Use Mutex for synchronization in imageCache
This commit is contained in:
Kubernetes Prow Robot 2019-06-14 07:59:18 -07:00 committed by GitHub
commit 11abb58a5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}