Skip to content

Commit

Permalink
tsdb: fix up sort call with faster slices.Sort
Browse files Browse the repository at this point in the history
This call was added by PR prometheus#11075 merged before prometheus#11318 which changed all
similar calls to `sort.Sort` into a faster one.

Signed-off-by: Bryan Boreham <[email protected]>
  • Loading branch information
bboreham committed Oct 1, 2022
1 parent a1d6ba5 commit ef34b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsdb/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func (bm *BlockMetaCompaction) SetOutOfOrder() {
return
}
bm.Hints = append(bm.Hints, CompactionHintFromOutOfOrder)
sort.Strings(bm.Hints)
slices.Sort(bm.Hints)
}

func (bm *BlockMetaCompaction) FromOutOfOrder() bool {
Expand Down

0 comments on commit ef34b00

Please sign in to comment.