mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
storage: Set shrink ratio in the constructor.
This commit is contained in:
parent
b2f086c6c4
commit
4ccfc93dcf
|
@ -310,6 +310,7 @@ func newPersistence(
|
||||||
dirtyFileName: dirtyPath,
|
dirtyFileName: dirtyPath,
|
||||||
fLock: fLock,
|
fLock: fLock,
|
||||||
shouldSync: shouldSync,
|
shouldSync: shouldSync,
|
||||||
|
minShrinkRatio: minShrinkRatio,
|
||||||
// Create buffers of length 3*chunkLenWithHeader by default because that is still reasonably small
|
// 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
|
// 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.
|
// that to the pool so that callers can rely on a minimum buffer size.
|
||||||
|
|
Loading…
Reference in a new issue