]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: remove noop C_OSD_CompletedPull
authorSamuel Just <sam.just@inktank.com>
Tue, 24 Sep 2013 23:17:33 +0000 (16:17 -0700)
committerSamuel Just <sam.just@inktank.com>
Thu, 26 Sep 2013 18:24:28 +0000 (11:24 -0700)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h

index 9c9b4fb6bb929e165d0bebb61e07d9c3de739617..f1155a0f897e1cfc626894244b10f171c1b6e96b 100644 (file)
@@ -168,8 +168,6 @@ void ReplicatedPG::on_local_recover(
 
     t->register_on_applied(new C_OSD_AppliedRecoveredObject(this, obc));
     t->register_on_applied_sync(new C_OSD_OndiskWriteUnlock(obc));
-    t->register_on_complete(
-      new C_OSD_CompletedPull(this, hoid, get_osdmap()->get_epoch()));
 
     publish_stats_to_osd();
     if (waiting_for_missing_object.count(hoid)) {
index 05fbe0fa79207886b4280ab108b57241fe380a55..e24592e932f345a639d9095b8bc815338cd78b2b 100644 (file)
@@ -700,18 +700,6 @@ protected:
       pg->_committed_pushed_object(epoch, last_complete);
     }
   };
-  struct C_OSD_CompletedPull : public Context {
-    ReplicatedPGRef pg;
-    hobject_t hoid;
-    epoch_t epoch;
-    C_OSD_CompletedPull(
-      ReplicatedPG *pg,
-      const hobject_t &hoid,
-      epoch_t epoch) : pg(pg), hoid(hoid), epoch(epoch) {}
-    void finish(int) {
-    }
-  };
-  friend struct C_OSD_CompletedPull;
   struct C_OSD_AppliedRecoveredObjectReplica : public Context {
     ReplicatedPGRef pg;
     C_OSD_AppliedRecoveredObjectReplica(ReplicatedPG *p) :