diff options
author | Casey Bodley <cbodley@users.noreply.github.com> | 2024-09-09 20:02:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-09 20:02:38 +0200 |
commit | ce2c7d57a2cee71e5d47c6004c4f624ae53a88f5 (patch) | |
tree | 297219800f43ff67074df6788dc0a427dcd96942 /src/rgw/driver/rados/rgw_sal_rados.h | |
parent | Merge pull request #59297 from ivoalmeida/carbon-datatable-performance (diff) | |
parent | rgw/sal: LCHead and LCEntry don't need abstraction (diff) | |
download | ceph-ce2c7d57a2cee71e5d47c6004c4f624ae53a88f5.tar.xz ceph-ce2c7d57a2cee71e5d47c6004c4f624ae53a88f5.zip |
Merge pull request #58603 from cbodley/wip-rgw-sal-concrete-lc
rgw/sal: LCHead and LCEntry don't need abstraction
Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Diffstat (limited to 'src/rgw/driver/rados/rgw_sal_rados.h')
-rw-r--r-- | src/rgw/driver/rados/rgw_sal_rados.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/rgw/driver/rados/rgw_sal_rados.h b/src/rgw/driver/rados/rgw_sal_rados.h index 705b665d46d..d359f733ab3 100644 --- a/src/rgw/driver/rados/rgw_sal_rados.h +++ b/src/rgw/driver/rados/rgw_sal_rados.h @@ -877,31 +877,30 @@ public: } }; -class RadosLifecycle : public StoreLifecycle { +class RadosLifecycle : public Lifecycle { RadosStore* store; public: RadosLifecycle(RadosStore* _st) : store(_st) {} - using StoreLifecycle::get_entry; virtual int get_entry(const DoutPrefixProvider* dpp, optional_yield y, const std::string& oid, const std::string& marker, - std::unique_ptr<LCEntry>* entry) override; + LCEntry& entry) override; virtual int get_next_entry(const DoutPrefixProvider* dpp, optional_yield y, const std::string& oid, const std::string& marker, - std::unique_ptr<LCEntry>* entry) override; + LCEntry& entry) override; virtual int set_entry(const DoutPrefixProvider* dpp, optional_yield y, - const std::string& oid, LCEntry& entry) override; + const std::string& oid, const LCEntry& entry) override; virtual int list_entries(const DoutPrefixProvider* dpp, optional_yield y, const std::string& oid, const std::string& marker, uint32_t max_entries, - std::vector<std::unique_ptr<LCEntry>>& entries) override; + std::vector<LCEntry>& entries) override; virtual int rm_entry(const DoutPrefixProvider* dpp, optional_yield y, - const std::string& oid, LCEntry& entry) override; + const std::string& oid, const LCEntry& entry) override; virtual int get_head(const DoutPrefixProvider* dpp, optional_yield y, - const std::string& oid, std::unique_ptr<LCHead>* head) override; - virtual int put_head(const DoutPrefixProvider* dpp, optional_yield y, const std::string& oid, LCHead& head) override; + virtual int put_head(const DoutPrefixProvider* dpp, optional_yield y, + const std::string& oid, const LCHead& head) override; virtual std::unique_ptr<LCSerializer> get_serializer(const std::string& lock_name, const std::string& oid, const std::string& cookie) override; |