The RecoveryCtx parameter is not needed.
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
rctx.handle = &handle;
int started;
- bool more = pg->start_recovery_ops(max, &rctx, handle, &started);
+ bool more = pg->start_recovery_ops(max, handle, &started);
dout(10) << "do_recovery started " << started << "/" << max << " on " << *pg << dendl;
/*
* @returns true if any useful work was accomplished; false otherwise
*/
virtual bool start_recovery_ops(
- int max, RecoveryCtx *prctx,
- ThreadPool::TPHandle &handle,
+ int max, ThreadPool::TPHandle &handle,
int *ops_begun) = 0;
void purge_strays();
bool ReplicatedPG::start_recovery_ops(
- int max, RecoveryCtx *prctx,
- ThreadPool::TPHandle &handle,
+ int max, ThreadPool::TPHandle &handle,
int *ops_started)
{
int& started = *ops_started;
void queue_for_recovery();
bool start_recovery_ops(
- int max, RecoveryCtx *prctx,
- ThreadPool::TPHandle &handle, int *started);
+ int max, ThreadPool::TPHandle &handle, int *started);
int recover_primary(int max, ThreadPool::TPHandle &handle);
int recover_replicas(int max, ThreadPool::TPHandle &handle);