fix buffer cache running out of space

This commit is contained in:
Niko Storni 2020-11-22 04:04:44 +01:00
parent 704e15f8c1
commit 7f5a89fa5a

View file

@ -165,6 +165,7 @@ func wrapWithCache(s store.BlobStore) store.BlobStore {
}
diskCacheMaxSize, diskCachePath = diskCacheParams(bufferReflectorCmdDiskCache)
cacheMaxSizeInBytes = float64(diskCacheMaxSize * 2 * 1000 * 1000)
if diskCacheMaxSize > 0 {
err := os.MkdirAll(diskCachePath, os.ModePerm)
if err != nil {