forked from cockroachdb/pebble
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*: Fix race in compactMarkedFilesLocked with concurrent compactions
Presently there's a race with concurrent compactions and the logic in `compactMarkedFilesLocked` where we expect each call to `maybeScheduleCompactionPicker` to create at least one compaction, when that is not guaranteed especially around concurrent compactions. This change updates the logic there to only wait on compactions if we still have marked files for compaction at wait time. Fixes cockroachdb#2044.
- Loading branch information
Showing
2 changed files
with
53 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters