Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
osd/PG: simplify start_recovery_ops return value meaning
Instead of complex check in caller, return simple bool indicating whether find_unfound() should be called with a rctx. There is one remaining condition that can probably be simplified: if (!recovering.empty() || work_in_progress || recovery_ops_active > 0 || deferred_backfill) return !work_in_progress && have_unfound(); but we will leave it for now. Signed-off-by: Sage Weil <sage@redhat.com>
- Loading branch information
Showing
2 changed files
with
7 additions
and
7 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