Skip to content

Commit

Permalink
bucket: handle instances where no blocks are loaded
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Colvin <Jacob.Colvin@8451.com>
  • Loading branch information
jacobcolvin-8451 committed Mar 13, 2020
1 parent 081d749 commit 80853e0
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 70 deletions.
2 changes: 2 additions & 0 deletions cmd/thanos/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,8 @@ func download(ctx context.Context, logger log.Logger, bkt objstore.Bucket, fetch
return nil, err
}

blocks = []metadata.Meta{}

for _, meta := range metas {
blocks = append(blocks, *meta)
}
Expand Down
Loading

0 comments on commit 80853e0

Please sign in to comment.