]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: remove useless set_role from split completion
authorSage Weil <sage@redhat.com>
Fri, 29 Apr 2016 19:29:19 +0000 (15:29 -0400)
committerBoris Ranto <branto@redhat.com>
Fri, 6 May 2016 11:44:19 +0000 (13:44 +0200)
This is done by PG::split_into().

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc

index 77acdc9e74ee1512a44eed729008d0f06640917d..de3de5a5858983f818b1fdd71f6dd51b7fa7b20f 100644 (file)
@@ -2938,10 +2938,6 @@ void OSD::add_newly_split_pg(PG *pg, PG::RecoveryCtx *rctx)
   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));