]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: remove unused C_OnPushCommit
authorSamuel Just <sjust@redhat.com>
Thu, 26 Mar 2015 17:44:00 +0000 (10:44 -0700)
committerSamuel Just <sjust@redhat.com>
Thu, 26 Mar 2015 17:44:00 +0000 (10:44 -0700)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h

index 4964bc489951536220f4c950abfb46c0ac0f4ff6..64b88eb0266af5c6f2983d1be05a933aeca89fbd 100644 (file)
@@ -9295,16 +9295,6 @@ bool ReplicatedBackend::handle_pull_response(
   }
 }
 
-struct C_OnPushCommit : public Context {
-  ReplicatedPG *pg;
-  OpRequestRef op;
-  C_OnPushCommit(ReplicatedPG *pg, OpRequestRef op) : pg(pg), op(op) {}
-  void finish(int) {
-    op->mark_event("committed");
-    log_subop_stats(pg->osd->logger, op, l_osd_sop_push);
-  }
-};
-
 void ReplicatedBackend::handle_push(
   pg_shard_t from, PushOp &pop, PushReplyOp *response,
   ObjectStore::Transaction *t)
index b158e39ea91e1da152ceeb0802102832dec85738..c213b285558ac67c4fdf66859b9c260b47f0b511 100644 (file)
@@ -951,8 +951,6 @@ protected:
     return true;
   }
 
-  friend struct C_OnPushCommit;
-
   // projected object info
   SharedLRU<hobject_t, ObjectContext> object_contexts;
   // map from oid.snapdir() to SnapSetContext *