Skip to content

Commit

Permalink
Added metadata.NoDownsampleMarkVersion1 field
Browse files Browse the repository at this point in the history
Signed-off-by: Rohit Singh <rohitkochhar@bitgo.com>
  • Loading branch information
Rohit Singh committed Dec 7, 2022
1 parent 554c55d commit 204452c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/block/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ func MarkForNoDownsample(ctx context.Context, logger log.Logger, bkt objstore.Bu
}
noDownsampleMark, err := json.Marshal(metadata.NoDownsampleMark{
ID: id,
Version: metadata.NoCompactMarkVersion1,
Version: metadata.NoDownsampleMarkVersion1,

NoDownsampleTime: time.Now().Unix(),
Reason: reason,
Expand Down
2 changes: 2 additions & 0 deletions pkg/block/metadata/markers.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ const (
DeletionMarkVersion1 = 1
// NoCompactMarkVersion1 is the version of no-compact-mark file supported by Thanos.
NoCompactMarkVersion1 = 1
// NoDownsampleVersion1 is the version of no-downsample-mark file supported by Thanos.
NoDownsampleMarkVersion1 = 1
)

var (
Expand Down

0 comments on commit 204452c

Please sign in to comment.