From: Samuel Just Date: Thu, 26 Mar 2015 17:44:00 +0000 (-0700) Subject: ReplicatedPG: remove unused C_OnPushCommit X-Git-Tag: v0.94~14^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e9d6096f254479b1c07e2eb0d1a5279e304d1728;p=ceph.git ReplicatedPG: remove unused C_OnPushCommit Signed-off-by: Samuel Just --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 4964bc4899515..64b88eb0266af 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -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) diff --git a/src/osd/ReplicatedPG.h b/src/osd/ReplicatedPG.h index b158e39ea91e1..c213b285558ac 100644 --- a/src/osd/ReplicatedPG.h +++ b/src/osd/ReplicatedPG.h @@ -951,8 +951,6 @@ protected: return true; } - friend struct C_OnPushCommit; - // projected object info SharedLRU object_contexts; // map from oid.snapdir() to SnapSetContext *