From 4ccfc93dcfd2891a2fa9943175186bd796bcadb5 Mon Sep 17 00:00:00 2001 From: beorn7 Date: Wed, 1 Feb 2017 15:36:38 +0100 Subject: [PATCH] storage: Set shrink ratio in the constructor. --- storage/local/persistence.go | 1 + 1 file changed, 1 insertion(+) diff --git a/storage/local/persistence.go b/storage/local/persistence.go index 4d27334969..5015fb3c6b 100644 --- a/storage/local/persistence.go +++ b/storage/local/persistence.go @@ -310,6 +310,7 @@ func newPersistence( dirtyFileName: dirtyPath, fLock: fLock, shouldSync: shouldSync, + minShrinkRatio: minShrinkRatio, // Create buffers of length 3*chunkLenWithHeader by default because that is still reasonably small // and at the same time enough for many uses. The contract is to never return buffer smaller than // that to the pool so that callers can rely on a minimum buffer size.