This is done by PG::split_into().
Signed-off-by: Sage Weil <sage@redhat.com>
service.pg_add_epoch(pg->info.pgid, pg->get_osdmap()->get_epoch());
dout(10) << "Adding newly split pg " << *pg << dendl;
- vector<int> up, acting;
- pg->get_osdmap()->pg_to_up_acting_osds(pg->info.pgid.pgid, up, acting);
- int role = OSDMap::calc_pg_role(service.whoami, acting);
- pg->set_role(role);
pg->reg_next_scrub();
pg->handle_loaded(rctx);
pg->write_if_dirty(*(rctx->transaction));