Skip to content

Commit

Permalink
downsample: fix postings index
Browse files Browse the repository at this point in the history
Use proper posting index to fetch series data with label set and chunks
  • Loading branch information
xjewer committed Nov 14, 2018
1 parent fed2fb1 commit 8b1bafa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/compact/downsample/streamed_block_writer.go
Expand Up @@ -228,7 +228,7 @@ func (w *StreamedBlockWriter) populateBlock(indexWriter tsdb.IndexWriter) error

all := index.NewListPostings(w.postings)
for all.Next() {
s := w.series[i]
s := w.series[all.At()]
// Skip the series with all deleted chunks.
if len(s.chunks) == 0 {
level.Info(w.logger).Log("empty chunks", i, s.lset)
Expand Down

0 comments on commit 8b1bafa

Please sign in to comment.