From 7f5a89fa5a65f78b9d35a67cd1ddf40929cf0698 Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Sun, 22 Nov 2020 04:04:44 +0100 Subject: [PATCH] fix buffer cache running out of space --- cmd/reflector.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/reflector.go b/cmd/reflector.go index 4d47970..55d77b3 100644 --- a/cmd/reflector.go +++ b/cmd/reflector.go @@ -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 {