]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: use ReplicatedPGRef for C_PG_MarkUnfoundLost
authorSamuel Just <sam.just@inktank.com>
Wed, 17 Apr 2013 21:08:39 +0000 (14:08 -0700)
committerSamuel Just <sam.just@inktank.com>
Fri, 19 Apr 2013 18:00:22 +0000 (11:00 -0700)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/ReplicatedPG.cc

index 3c019afbee1741095e61fae9252246627b3167e2..427dce0d4c8f7bad54ae007cb4760409f6366ad9 100644 (file)
@@ -6065,14 +6065,11 @@ ObjectContext *ReplicatedPG::mark_object_lost(ObjectStore::Transaction *t,
 }
 
 struct C_PG_MarkUnfoundLost : public Context {
-  ReplicatedPG *pg;
+  ReplicatedPGRef pg;
   list<ObjectContext*> obcs;
-  C_PG_MarkUnfoundLost(ReplicatedPG *p) : pg(p) {
-    pg->get();
-  }
+  C_PG_MarkUnfoundLost(ReplicatedPG *p) : pg(p) {}
   void finish(int r) {
     pg->_finish_mark_all_unfound_lost(obcs);
-    pg->put();
   }
 };