From: Radosław Zarzyński Date: Wed, 13 Sep 2023 16:20:31 +0000 (+0200) Subject: osd: ReadPipeline doesn't depend on ECBackend anymore X-Git-Tag: v19.3.0~13^2~34 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6ed1a6306fd3fa41d11a86641be39c97fc5aa473;p=ceph.git osd: ReadPipeline doesn't depend on ECBackend anymore Signed-off-by: Radosław Zarzyński --- diff --git a/src/osd/ECBackend.cc b/src/osd/ECBackend.cc index 386c1eeabe32..d72751c4c36c 100644 --- a/src/osd/ECBackend.cc +++ b/src/osd/ECBackend.cc @@ -224,7 +224,7 @@ ECBackend::ECBackend( ErasureCodeInterfaceRef ec_impl, uint64_t stripe_width) : PGBackend(cct, pg, store, coll, ch), - read_pipeline(cct, ec_impl, this->sinfo, get_parent(), *this), + read_pipeline(cct, ec_impl, this->sinfo, get_parent()), rmw_pipeline(cct, ec_impl, this->sinfo, get_parent(), *this), ec_impl(ec_impl), sinfo(ec_impl->get_data_chunk_count(), stripe_width) { diff --git a/src/osd/ECBackend.h b/src/osd/ECBackend.h index b859414160bd..85e7a5b91595 100644 --- a/src/osd/ECBackend.h +++ b/src/osd/ECBackend.h @@ -445,9 +445,8 @@ public: CephContext* cct; ceph::ErasureCodeInterfaceRef ec_impl; const ECUtil::stripe_info_t& sinfo; - PGBackend::Listener* parent; // TODO: lay an interface down here - ECBackend& ec_backend; + PGBackend::Listener* parent; PGBackend::Listener *get_parent() const { return parent; } const OSDMapRef& get_osdmap() const { return get_parent()->pgb_get_osdmap(); } @@ -457,13 +456,11 @@ public: ReadPipeline(CephContext* cct, ceph::ErasureCodeInterfaceRef ec_impl, const ECUtil::stripe_info_t& sinfo, - PGBackend::Listener* parent, - ECBackend& ec_backend) + PGBackend::Listener* parent) : cct(cct), ec_impl(std::move(ec_impl)), sinfo(sinfo), - parent(parent), - ec_backend(ec_backend) { + parent(parent) { } int get_remaining_shards(