]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
PG: reset_recovery_pointers in activate if missing is empty
authorSamuel Just <sam.just@inktank.com>
Fri, 29 Jun 2012 22:49:41 +0000 (15:49 -0700)
committerSamuel Just <sam.just@inktank.com>
Fri, 29 Jun 2012 22:49:51 +0000 (15:49 -0700)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/PG.cc

index 1843c8f3627df0c37667321bfdc46db8c9d62476..3d6dc85523ce02f098b09cae35c7b0d778120c77 100644 (file)
@@ -1299,6 +1299,7 @@ void PG::activate(ObjectStore::Transaction& t, list<Context*>& tfin,
     dout(10) << "activate - no missing, moving last_complete " << info.last_complete 
             << " -> " << info.last_update << dendl;
     info.last_complete = info.last_update;
+    log.reset_recovery_pointers();
   } else {
     dout(10) << "activate - not complete, " << missing << dendl;
     log.complete_to = log.log.begin();