]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
PG: reg_last_pg_scrub on pg resurrection
authorSamuel Just <sam.just@inktank.com>
Mon, 18 Jun 2012 16:26:12 +0000 (09:26 -0700)
committerSage Weil <sage@inktank.com>
Mon, 18 Jun 2012 21:33:50 +0000 (14:33 -0700)
This may solve the unreg_last_pg_scrub assert.

see #2453.

Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/PG.cc

index 2e6013edf7182313e5ebf9398fad9c0efbf53ddf..1b97618ee3c71620ad2dfb6c702068f1283e36fc 100644 (file)
@@ -3621,6 +3621,7 @@ void PG::start_peering_interval(const OSDMapRef lastmap,
     dout(10) << *this << " canceling deletion!" << dendl;
     deleting = false;
     osd->remove_wq.dequeue(this);
+    osd->reg_last_pg_scrub(info.pgid, info.history.last_scrub_stamp);
   }
     
   if (role != oldrole) {