fix buffer cache running out of space

This commit is contained in:
Niko Storni 2020-11-22 04:04:44 +01:00 committed by Alex Grintsvayg
parent d45abdbdb0
commit 7b80b2d4d2
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5

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 {