]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: ECCommon::RecoveryBackend doesn't depend on ECBackend anymore
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Mon, 25 Mar 2024 13:02:07 +0000 (13:02 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 13 Aug 2025 16:34:44 +0000 (16:34 +0000)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/osd/ECBackend.cc
src/osd/ECBackend.h
src/osd/ECCommon.h

index 71e7ab256438f7f3503d3cbd0939d7ea610992fa..0d189e4f1a9bc838a00886a19c3e54dc1618453f 100644 (file)
@@ -113,15 +113,13 @@ ECBackend::RecoveryBackend::RecoveryBackend(
   ceph::ErasureCodeInterfaceRef ec_impl,
   const ECUtil::stripe_info_t &sinfo,
   ReadPipeline &read_pipeline,
-  ECListener *parent,
-  ECBackend *ecbackend)
+  ECListener *parent)
   : cct(cct),
     coll(coll),
     ec_impl(std::move(ec_impl)),
     sinfo(sinfo),
     read_pipeline(read_pipeline),
-    parent(parent),
-    ecbackend(ecbackend) {}
+    parent(parent) {}
 
 ECCommon::RecoveryBackend::ECRecoveryHandle *ECBackend::RecoveryBackend::open_recovery_op() {
   return new ECRecoveryHandle;
index 27f83e04c5652f6f80425ab2b3406409eadb00c8..cf70699243798070781b8596055352efb10bab14 100644 (file)
@@ -193,9 +193,9 @@ class ECBackend : public ECCommon {
                       const ECUtil::stripe_info_t &sinfo,
                       ReadPipeline &read_pipeline,
                       PGBackend::Listener *parent,
-                      ECBackend *ecbackend)
+                      ECBackend *)
       : RecoveryBackend(cct, coll, std::move(ec_impl), sinfo, read_pipeline,
-                        parent->get_eclistener(), ecbackend),
+                        parent->get_eclistener()),
         parent(parent) {}
 
     void commit_txn_send_replies(
index c4726bff42e0974ab281f565b3cce206043def82..5551eeecb7f80f3e2f2e2eb6950de5a242366935 100644 (file)
@@ -684,7 +684,6 @@ struct ECCommon {
     ReadPipeline &read_pipeline;
     // TODO: lay an interface down here
     ECListener *parent;
-    ECBackend *ecbackend;
 
     ECListener *get_parent() const { return parent; }
 
@@ -708,8 +707,7 @@ struct ECCommon {
                     ceph::ErasureCodeInterfaceRef ec_impl,
                     const ECUtil::stripe_info_t &sinfo,
                     ReadPipeline &read_pipeline,
-                    ECListener *parent,
-                    ECBackend *ecbackend);
+                    ECListener *parent);
 
     struct RecoveryOp {
       hobject_t hoid;