]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: drop unused methods in ClientRequest
authorYingxin Cheng <yingxin.cheng@intel.com>
Mon, 3 Apr 2023 01:54:49 +0000 (09:54 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Fri, 14 Apr 2023 05:46:35 +0000 (13:46 +0800)
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/osd/osd_operations/client_request.cc
src/crimson/osd/osd_operations/client_request.h

index 96ff12a1e818257ddff2daada64bfde6aeba5124..db0f2098dbbd03ace02846d7c5bfdd51f01ab925 100644 (file)
@@ -80,22 +80,11 @@ ConnectionPipeline &ClientRequest::get_connection_pipeline()
   return get_osd_priv(conn.get()).client_request_conn_pipeline;
 }
 
-ConnectionPipeline &ClientRequest::cp()
-{
-  return get_osd_priv(conn.get()).client_request_conn_pipeline;
-}
-
 ClientRequest::PGPipeline &ClientRequest::pp(PG &pg)
 {
   return pg.request_pg_pipeline;
 }
 
-bool ClientRequest::same_session_and_pg(const ClientRequest& other_op) const
-{
-  return &get_osd_priv(conn.get()) == &get_osd_priv(other_op.conn.get()) &&
-         m->get_spg() == other_op.m->get_spg();
-}
-
 bool ClientRequest::is_pg_op() const
 {
   return std::any_of(
index a7d68fccf2836cfe6da0425beed96aaeea656fff..e7620b6af96afa26c2bb22c09fa206b7bcb55473 100644 (file)
@@ -208,11 +208,11 @@ public:
 
   seastar::future<> with_pg_int(
     ShardServices &shard_services, Ref<PG> pg);
-public:
-  bool same_session_and_pg(const ClientRequest& other_op) const;
 
+public:
   seastar::future<> with_pg(
     ShardServices &shard_services, Ref<PG> pgref);
+
 private:
   template <typename FuncT>
   interruptible_future<> with_sequencer(FuncT&& func);
@@ -231,7 +231,6 @@ private:
       Ref<PG> &pg);
   bool is_pg_op() const;
 
-  ConnectionPipeline &cp();
   PGPipeline &pp(PG &pg);
 
   template <typename Errorator>