From 8fc491161b5fd8f34f8ac562799ece7b702ddb86 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Fri, 14 Sep 2018 13:33:47 +0800 Subject: [PATCH] osd/PG: kill __queue_query__ which has no consumbers... Signed-off-by: xie xingguo --- src/osd/PG.cc | 12 ------------ src/osd/PG.h | 2 -- 2 files changed, 14 deletions(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index a2466a99cb7d3..e71a8ee2f5660 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -6542,18 +6542,6 @@ void PG::queue_null(epoch_t msg_epoch, NullEvt()))); } -void PG::queue_query(epoch_t msg_epoch, - epoch_t query_epoch, - pg_shard_t from, const pg_query_t& q) -{ - dout(10) << "handle_query " << q << " from replica " << from << dendl; - queue_peering_event( - PGPeeringEventRef( - std::make_shared( - msg_epoch, query_epoch, - MQuery(info.pgid, from, q, query_epoch)))); -} - void PG::find_unfound(epoch_t queued, RecoveryCtx *rctx) { /* diff --git a/src/osd/PG.h b/src/osd/PG.h index dc14dfb63ba7f..faea29644843c 100644 --- a/src/osd/PG.h +++ b/src/osd/PG.h @@ -414,8 +414,6 @@ public: void queue_peering_event(PGPeeringEventRef evt); void do_peering_event(PGPeeringEventRef evt, RecoveryCtx *rcx); - void queue_query(epoch_t msg_epoch, epoch_t query_epoch, - pg_shard_t from, const pg_query_t& q); void queue_null(epoch_t msg_epoch, epoch_t query_epoch); void queue_flushed(epoch_t started_at); void handle_advance_map( -- 2.39.5