mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-12 14:27:27 -08:00
tsdb/compact: fix passing merge func
Fixing a very small logical problem I've introduced :(. Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>
This commit is contained in:
parent
6150e1ca0e
commit
9b759135d1
|
@ -178,8 +178,8 @@ func NewLeveledCompactorWithOptions(ctx context.Context, r prometheus.Registerer
|
||||||
if l == nil {
|
if l == nil {
|
||||||
l = log.NewNopLogger()
|
l = log.NewNopLogger()
|
||||||
}
|
}
|
||||||
var mergeFunc storage.VerticalChunkSeriesMergeFunc
|
mergeFunc := opts.MergeFunc
|
||||||
if opts.MergeFunc == nil {
|
if mergeFunc == nil {
|
||||||
mergeFunc = storage.NewCompactingChunkSeriesMerger(storage.ChainedSeriesMerge)
|
mergeFunc = storage.NewCompactingChunkSeriesMerger(storage.ChainedSeriesMerge)
|
||||||
}
|
}
|
||||||
var maxBlockChunkSegmentSize int64
|
var maxBlockChunkSegmentSize int64
|
||||||
|
|
Loading…
Reference in a new issue