Skip to content

Commit

Permalink
compaction: remove the useless condition in check delete compactions
Browse files Browse the repository at this point in the history
  • Loading branch information
lonng authored and jbowens committed Oct 18, 2023
1 parent 5807b59 commit 6205042
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion compaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -2336,7 +2336,6 @@ func (d *DB) maybeScheduleCompactionPicker(
// cheap and reduce future compaction work.
if !d.opts.private.disableDeleteOnlyCompactions &&
len(d.mu.compact.deletionHints) > 0 &&
d.mu.compact.compactingCount < maxConcurrentCompactions &&
!d.opts.DisableAutomaticCompactions {
v := d.mu.versions.currentVersion()
snapshots := d.mu.snapshots.toSlice()
Expand Down

0 comments on commit 6205042

Please sign in to comment.