osd_recovery_max_single_start is not necessarily used up in start_recovery_ops, and
start_backfill_ops could be invoked even there's no need to backfill, so do not assert
here, just return.
Signed-off-by: Xuehan Xu <xxhdx1985126@163.com>
size_t max_to_start,
std::vector<crimson::osd::blocking_future<>> *out)
{
- assert(!pg->get_peering_state().get_backfill_targets().empty());
-
+ if (pg->get_peering_state().get_backfill_targets().empty())
+ return 0;
ceph_abort("not implemented!");
}