mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-13 17:14:05 -08:00
Fix regressions introduced by #13242
Signed-off-by: Marco Pracucci <marco@pracucci.com>
This commit is contained in:
parent
72a8f1084b
commit
7852a7c516
|
@ -188,12 +188,12 @@ func NewLeveledCompactorWithOptions(ctx context.Context, r prometheus.Registerer
|
||||||
if mergeFunc == nil {
|
if mergeFunc == nil {
|
||||||
mergeFunc = storage.NewCompactingChunkSeriesMerger(storage.ChainedSeriesMerge)
|
mergeFunc = storage.NewCompactingChunkSeriesMerger(storage.ChainedSeriesMerge)
|
||||||
}
|
}
|
||||||
var maxBlockChunkSegmentSize int64
|
maxBlockChunkSegmentSize := opts.MaxBlockChunkSegmentSize
|
||||||
if opts.MaxBlockChunkSegmentSize == 0 {
|
if maxBlockChunkSegmentSize == 0 {
|
||||||
maxBlockChunkSegmentSize = chunks.DefaultChunkSegmentSize
|
maxBlockChunkSegmentSize = chunks.DefaultChunkSegmentSize
|
||||||
}
|
}
|
||||||
var pe index.PostingsEncoder
|
pe := opts.PE
|
||||||
if opts.PE == nil {
|
if pe == nil {
|
||||||
pe = index.EncodePostingsRaw
|
pe = index.EncodePostingsRaw
|
||||||
}
|
}
|
||||||
return &LeveledCompactor{
|
return &LeveledCompactor{
|
||||||
|
|
Loading…
Reference in a new issue