Browse Source

Merge pull request #13407 from pracucci/fix-13242-regressions

Fix regressions introduced by #13242
pull/13411/head
Bryan Boreham 10 months ago committed by GitHub
parent
commit
7153f61790
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      tsdb/compact.go

8
tsdb/compact.go

@ -188,12 +188,12 @@ func NewLeveledCompactorWithOptions(ctx context.Context, r prometheus.Registerer
if mergeFunc == nil {
mergeFunc = storage.NewCompactingChunkSeriesMerger(storage.ChainedSeriesMerge)
}
var maxBlockChunkSegmentSize int64
if opts.MaxBlockChunkSegmentSize == 0 {
maxBlockChunkSegmentSize := opts.MaxBlockChunkSegmentSize
if maxBlockChunkSegmentSize == 0 {
maxBlockChunkSegmentSize = chunks.DefaultChunkSegmentSize
}
var pe index.PostingsEncoder
if opts.PE == nil {
pe := opts.PE
if pe == nil {
pe = index.EncodePostingsRaw
}
return &LeveledCompactor{

Loading…
Cancel
Save