]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: drop oldest_last_clean from activate_map
authorSage Weil <sage@inktank.com>
Thu, 3 Jan 2013 06:04:34 +0000 (22:04 -0800)
committerSage Weil <sage@inktank.com>
Thu, 3 Jan 2013 06:04:34 +0000 (22:04 -0800)
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/OSD.cc

index 80c20f96711c2bc5896087c6f48f985c0da88987..44d64b8000e6282c3c77855030a316e52e0c11a8 100644 (file)
@@ -4142,9 +4142,6 @@ void OSD::activate_map()
   dout(7) << "activate_map version " << osdmap->get_epoch() << dendl;
 
   int num_pg_primary = 0, num_pg_replica = 0, num_pg_stray = 0;
-
-  epoch_t oldest_last_clean = osdmap->get_epoch();
-
   list<PG*> to_remove;
 
   service.expand_pg_num(service.get_osdmap(),
@@ -4163,9 +4160,6 @@ void OSD::activate_map()
     else
       num_pg_stray++;
 
-    if (pg->is_primary() && pg->info.history.last_epoch_clean < oldest_last_clean)
-      oldest_last_clean = pg->info.history.last_epoch_clean;
-
     set<pg_t> split_pgs;
     if (!osdmap->have_pg_pool(pg->info.pgid.pool())) {
       //pool is deleted!