Merge pull request #13391 from GiedriusS/compact_merge_func
tsdb/compact: fix passing merge func
This commit is contained in:
commit
17920623e7
|
@ -184,8 +184,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 New Issue