diff options
Diffstat (limited to 'src/osd/ReplicatedPG.h')
-rw-r--r-- | src/osd/ReplicatedPG.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/osd/ReplicatedPG.h b/src/osd/ReplicatedPG.h index 356ad4e31d7..c7734efa3f8 100644 --- a/src/osd/ReplicatedPG.h +++ b/src/osd/ReplicatedPG.h @@ -881,13 +881,18 @@ protected: void _clear_recovery_state(); void queue_for_recovery(); - int start_recovery_ops( + bool start_recovery_ops( int max, RecoveryCtx *prctx, - ThreadPool::TPHandle &handle); + ThreadPool::TPHandle &handle, int& started); int recover_primary(int max, ThreadPool::TPHandle &handle); int recover_replicas(int max, ThreadPool::TPHandle &handle); - int recover_backfill(int max, ThreadPool::TPHandle &handle); + /** + * @param work_started will be set to true if recover_backfill got anywhere + * @returns the number of operations started + */ + int recover_backfill(int max, ThreadPool::TPHandle &handle, + bool& work_started); /** * scan a (hash) range of objects in the current pg |