summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_rest_swift.h
diff options
context:
space:
mode:
authorDaniel Gryniewicz <dang@redhat.com>2021-01-18 18:25:39 +0100
committerDaniel Gryniewicz <dang@redhat.com>2021-03-02 13:35:05 +0100
commit72d1a363263cf707d022ee756122236ba175cda2 (patch)
tree3eaf8e8726594a33f23b56a0ad790953a6693986 /src/rgw/rgw_rest_swift.h
parentMerge pull request #39714 from zdover23/wip-doc-cephadm-typo-togeter-2021-Feb-26 (diff)
downloadceph-72d1a363263cf707d022ee756122236ba175cda2.tar.xz
ceph-72d1a363263cf707d022ee756122236ba175cda2.zip
RGW - Zipper 10: Pull The Thread
This commit changes the RGWStoreManager to return a RGWStore* rather than a RGWRadosStore*. This is the thread that unravels the rest of the Zipper work, removing hard-coded uses of the RGWRados* classes. Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
Diffstat (limited to 'src/rgw/rgw_rest_swift.h')
-rw-r--r--src/rgw/rgw_rest_swift.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/rgw/rgw_rest_swift.h b/src/rgw/rgw_rest_swift.h
index 01f25b101ad..48d972d219f 100644
--- a/src/rgw/rgw_rest_swift.h
+++ b/src/rgw/rgw_rest_swift.h
@@ -235,7 +235,7 @@ protected:
struct info
{
bool is_admin_info;
- function<void (Formatter&, const ConfigProxy&, RGWRados&)> list_data;
+ function<void (Formatter&, const ConfigProxy&, rgw::sal::RGWStore*)> list_data;
};
static const vector<pair<string, struct info>> swift_info;
@@ -245,10 +245,10 @@ public:
void execute(optional_yield y) override;
void send_response() override;
- static void list_swift_data(Formatter& formatter, const ConfigProxy& config, RGWRados& store);
- static void list_tempauth_data(Formatter& formatter, const ConfigProxy& config, RGWRados& store);
- static void list_tempurl_data(Formatter& formatter, const ConfigProxy& config, RGWRados& store);
- static void list_slo_data(Formatter& formatter, const ConfigProxy& config, RGWRados& store);
+ static void list_swift_data(Formatter& formatter, const ConfigProxy& config, rgw::sal::RGWStore* store);
+ static void list_tempauth_data(Formatter& formatter, const ConfigProxy& config, rgw::sal::RGWStore* store);
+ static void list_tempurl_data(Formatter& formatter, const ConfigProxy& config, rgw::sal::RGWStore* store);
+ static void list_slo_data(Formatter& formatter, const ConfigProxy& config, rgw::sal::RGWStore* store);
static bool is_expired(const std::string& expires, const DoutPrefixProvider* dpp);
};
@@ -273,7 +273,7 @@ public:
RGWFormPost() = default;
~RGWFormPost() = default;
- void init(rgw::sal::RGWRadosStore* store,
+ void init(rgw::sal::RGWStore* store,
req_state* s,
RGWHandler* dialect_handler) override;
@@ -344,7 +344,7 @@ public:
class RGWSwiftWebsiteHandler {
- rgw::sal::RGWRadosStore* const store;
+ rgw::sal::RGWStore* const store;
req_state* const s;
RGWHandler_REST* const handler;
@@ -359,7 +359,7 @@ class RGWSwiftWebsiteHandler {
RGWOp* get_ws_index_op();
RGWOp* get_ws_listing_op();
public:
- RGWSwiftWebsiteHandler(rgw::sal::RGWRadosStore* const store,
+ RGWSwiftWebsiteHandler(rgw::sal::RGWStore* const store,
req_state* const s,
RGWHandler_REST* const handler)
: store(store),
@@ -385,7 +385,7 @@ protected:
return false;
}
- static int init_from_header(rgw::sal::RGWRadosStore* store, struct req_state* s,
+ static int init_from_header(rgw::sal::RGWStore* store, struct req_state* s,
const std::string& frontend_prefix);
public:
explicit RGWHandler_REST_SWIFT(const rgw::auth::Strategy& auth_strategy)
@@ -395,7 +395,7 @@ public:
int validate_bucket_name(const string& bucket);
- int init(rgw::sal::RGWRadosStore *store, struct req_state *s, rgw::io::BasicClient *cio) override;
+ int init(rgw::sal::RGWStore *store, struct req_state *s, rgw::io::BasicClient *cio) override;
int authorize(const DoutPrefixProvider *dpp, optional_yield y) override;
int postauth_init(optional_yield y) override;
@@ -443,7 +443,7 @@ public:
return website_handler->retarget_bucket(op, new_op);
}
- int init(rgw::sal::RGWRadosStore* const store,
+ int init(rgw::sal::RGWStore* const store,
struct req_state* const s,
rgw::io::BasicClient* const cio) override {
website_handler = boost::in_place<RGWSwiftWebsiteHandler>(store, s, this);
@@ -482,7 +482,7 @@ public:
return website_handler->retarget_object(op, new_op);
}
- int init(rgw::sal::RGWRadosStore* const store,
+ int init(rgw::sal::RGWStore* const store,
struct req_state* const s,
rgw::io::BasicClient* const cio) override {
website_handler = boost::in_place<RGWSwiftWebsiteHandler>(store, s, this);
@@ -502,7 +502,7 @@ public:
RGWRESTMgr_SWIFT() = default;
~RGWRESTMgr_SWIFT() override = default;
- RGWHandler_REST *get_handler(rgw::sal::RGWRadosStore *store,
+ RGWHandler_REST *get_handler(rgw::sal::RGWStore *store,
struct req_state *s,
const rgw::auth::StrategyRegistry& auth_registry,
const std::string& frontend_prefix) override;
@@ -536,7 +536,7 @@ public:
return new RGWGetCrossDomainPolicy_ObjStore_SWIFT();
}
- int init(rgw::sal::RGWRadosStore* const store,
+ int init(rgw::sal::RGWStore* const store,
struct req_state* const state,
rgw::io::BasicClient* const cio) override {
state->dialect = "swift";
@@ -574,7 +574,7 @@ public:
RGWRESTMgr_SWIFT_CrossDomain() = default;
~RGWRESTMgr_SWIFT_CrossDomain() override = default;
- RGWHandler_REST* get_handler(rgw::sal::RGWRadosStore *store,
+ RGWHandler_REST* get_handler(rgw::sal::RGWStore *store,
struct req_state* const s,
const rgw::auth::StrategyRegistry&,
const std::string&) override {
@@ -593,7 +593,7 @@ public:
return new RGWGetHealthCheck_ObjStore_SWIFT();
}
- int init(rgw::sal::RGWRadosStore* const store,
+ int init(rgw::sal::RGWStore* const store,
struct req_state* const state,
rgw::io::BasicClient* const cio) override {
state->dialect = "swift";
@@ -631,7 +631,7 @@ public:
RGWRESTMgr_SWIFT_HealthCheck() = default;
~RGWRESTMgr_SWIFT_HealthCheck() override = default;
- RGWHandler_REST* get_handler(rgw::sal::RGWRadosStore *store,
+ RGWHandler_REST* get_handler(rgw::sal::RGWStore *store,
struct req_state* const s,
const rgw::auth::StrategyRegistry&,
const std::string&) override {
@@ -650,7 +650,7 @@ public:
return new RGWInfo_ObjStore_SWIFT();
}
- int init(rgw::sal::RGWRadosStore* const store,
+ int init(rgw::sal::RGWStore* const store,
struct req_state* const state,
rgw::io::BasicClient* const cio) override {
state->dialect = "swift";
@@ -678,7 +678,7 @@ public:
RGWRESTMgr_SWIFT_Info() = default;
~RGWRESTMgr_SWIFT_Info() override = default;
- RGWHandler_REST *get_handler(rgw::sal::RGWRadosStore *store,
+ RGWHandler_REST *get_handler(rgw::sal::RGWStore *store,
struct req_state* s,
const rgw::auth::StrategyRegistry& auth_registry,
const std::string& frontend_prefix) override;