Commit 94f29555
94f2955512acMerged
Dmitrii Antonov <[email protected]> ยท 3 years ago ยท 1 file ยท ~1 modified
Description
Add missing lock in FindCache
Details
- Commit
- 94f2955512ac
- Parent
- b40d649e7807
pkg/cache/charts_cache.gomodifiedView file
@@ -45,6 +45,9 @@
4545
chartName := filepath.Base(chart)4646
chartFile := path.Join(c.cacheDir, fmt.Sprintf("%s-%s.tgz", chartName, version))4747
48+
c.lock.Lock()49+
defer c.lock.Unlock()50+
4851
_, err := os.Stat(chartFile)4952
if err == nil {5053
return chartFile, nil