Skip to content

Commit

Permalink
fix: remove force compation (#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
kolesnikovae committed Apr 20, 2022
1 parent d03ca0e commit d1b1547
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/storage/exemplars.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,6 @@ func (e *exemplars) truncateBefore(ctx context.Context, before time.Time) (err e
}

func (e *exemplars) truncateN(before time.Time, count int) (bool, error) {
if err := e.db.Flatten(2); err != nil {
return false, err
}
beforeTs := before.UnixNano()
keys := make([][]byte, 0, 2*count)
err := e.db.View(func(txn *badger.Txn) error {
Expand Down

0 comments on commit d1b1547

Please sign in to comment.