From 6205042b6dcd0d9ebfe05ce7f8ff73ec3818fb5d Mon Sep 17 00:00:00 2001 From: Henry Lonng Date: Tue, 17 Oct 2023 16:52:55 +0800 Subject: [PATCH] compaction: remove the useless condition in check delete compactions --- compaction.go | 1 - 1 file changed, 1 deletion(-) diff --git a/compaction.go b/compaction.go index 2421dc3cd1..339011f62b 100644 --- a/compaction.go +++ b/compaction.go @@ -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()