tsdb: fix up sort call with faster slices.Sort (#11380)

This call was added by PR #11075 merged before #11318 which changed all
similar calls to `sort.Sort` into a faster one.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
pull/11382/head
Bryan Boreham 2 years ago committed by GitHub
parent a1d6ba59ac
commit 9b31adc4e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -198,7 +198,7 @@ func (bm *BlockMetaCompaction) SetOutOfOrder() {
return return
} }
bm.Hints = append(bm.Hints, CompactionHintFromOutOfOrder) bm.Hints = append(bm.Hints, CompactionHintFromOutOfOrder)
sort.Strings(bm.Hints) slices.Sort(bm.Hints)
} }
func (bm *BlockMetaCompaction) FromOutOfOrder() bool { func (bm *BlockMetaCompaction) FromOutOfOrder() bool {

Loading…
Cancel
Save