bool need_stats;
bool wants_reversed;
std::string prefix;
- std::vector<rgw::sal::RGWBucketList> reverse_buffer;
+ std::vector<rgw::sal::BucketList> reverse_buffer;
uint64_t get_default_max() const override {
return 0;
~RGWListBuckets_ObjStore_SWIFT() override {}
int get_params(optional_yield y) override;
- void handle_listing_chunk(rgw::sal::RGWBucketList&& buckets) override;
+ void handle_listing_chunk(rgw::sal::BucketList&& buckets) override;
void send_response_begin(bool has_buckets) override;
- void send_response_data(rgw::sal::RGWBucketList& buckets) override;
- void send_response_data_reversed(rgw::sal::RGWBucketList& buckets);
- void dump_bucket_entry(const rgw::sal::RGWBucket& obj);
+ void send_response_data(rgw::sal::BucketList& buckets) override;
+ void send_response_data_reversed(rgw::sal::BucketList& buckets);
+ void dump_bucket_entry(const rgw::sal::Bucket& obj);
void send_response_end() override;
bool should_get_stats() override { return need_stats; }
};
class RGWListBucket_ObjStore_SWIFT : public RGWListBucket_ObjStore {
- string path;
+ std::string path;
public:
RGWListBucket_ObjStore_SWIFT() {
default_max = 10000;
};
class RGWStatAccount_ObjStore_SWIFT : public RGWStatAccount_ObjStore {
- map<string, bufferlist> attrs;
+ std::map<std::string, bufferlist> attrs;
public:
RGWStatAccount_ObjStore_SWIFT() {
}
};
class RGWPutObj_ObjStore_SWIFT : public RGWPutObj_ObjStore {
- string lo_etag;
+ std::string lo_etag;
public:
RGWPutObj_ObjStore_SWIFT() {}
~RGWPutObj_ObjStore_SWIFT() override {}
struct info
{
bool is_admin_info;
- function<void (Formatter&, const ConfigProxy&, RGWRados&)> list_data;
+ std::function<void (Formatter&, const ConfigProxy&, rgw::sal::Store*)> list_data;
};
- static const vector<pair<string, struct info>> swift_info;
+ static const std::vector<std::pair<std::string, struct info>> swift_info;
public:
RGWInfo_ObjStore_SWIFT() {}
~RGWInfo_ObjStore_SWIFT() override {}
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::Store* store);
+ static void list_tempauth_data(Formatter& formatter, const ConfigProxy& config, rgw::sal::Store* store);
+ static void list_tempurl_data(Formatter& formatter, const ConfigProxy& config, rgw::sal::Store* store);
+ static void list_slo_data(Formatter& formatter, const ConfigProxy& config, rgw::sal::Store* store);
static bool is_expired(const std::string& expires, const DoutPrefixProvider* dpp);
};
RGWFormPost() = default;
~RGWFormPost() = default;
- void init(rgw::sal::RGWRadosStore* store,
+ void init(rgw::sal::Store* store,
req_state* s,
RGWHandler* dialect_handler) override;
class RGWSwiftWebsiteHandler {
- rgw::sal::RGWRadosStore* const store;
+ rgw::sal::Store* const store;
req_state* const s;
RGWHandler_REST* const handler;
RGWOp* get_ws_index_op();
RGWOp* get_ws_listing_op();
public:
- RGWSwiftWebsiteHandler(rgw::sal::RGWRadosStore* const store,
+ RGWSwiftWebsiteHandler(rgw::sal::Store* const store,
req_state* const s,
RGWHandler_REST* const handler)
: store(store),
return false;
}
- static int init_from_header(rgw::sal::RGWRadosStore* store, struct req_state* s,
+ static int init_from_header(rgw::sal::Store* store, struct req_state* s,
const std::string& frontend_prefix);
public:
explicit RGWHandler_REST_SWIFT(const rgw::auth::Strategy& auth_strategy)
}
~RGWHandler_REST_SWIFT() override = default;
- int validate_bucket_name(const string& bucket);
+ int validate_bucket_name(const std::string& bucket);
- int init(rgw::sal::RGWRadosStore *store, struct req_state *s, rgw::io::BasicClient *cio) override;
+ int init(rgw::sal::Store* 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;
return website_handler->retarget_bucket(op, new_op);
}
- int init(rgw::sal::RGWRadosStore* const store,
+ int init(rgw::sal::Store* const store,
struct req_state* const s,
rgw::io::BasicClient* const cio) override {
website_handler = boost::in_place<RGWSwiftWebsiteHandler>(store, s, this);
return website_handler->retarget_object(op, new_op);
}
- int init(rgw::sal::RGWRadosStore* const store,
+ int init(rgw::sal::Store* const store,
struct req_state* const s,
rgw::io::BasicClient* const cio) override {
website_handler = boost::in_place<RGWSwiftWebsiteHandler>(store, s, this);
RGWRESTMgr_SWIFT() = default;
~RGWRESTMgr_SWIFT() override = default;
- RGWHandler_REST *get_handler(rgw::sal::RGWRadosStore *store,
+ RGWHandler_REST *get_handler(rgw::sal::Store* store,
struct req_state *s,
const rgw::auth::StrategyRegistry& auth_registry,
const std::string& frontend_prefix) override;
return new RGWGetCrossDomainPolicy_ObjStore_SWIFT();
}
- int init(rgw::sal::RGWRadosStore* const store,
+ int init(rgw::sal::Store* const store,
struct req_state* const state,
rgw::io::BasicClient* const cio) override {
state->dialect = "swift";
RGWRESTMgr_SWIFT_CrossDomain() = default;
~RGWRESTMgr_SWIFT_CrossDomain() override = default;
- RGWHandler_REST* get_handler(rgw::sal::RGWRadosStore *store,
+ RGWHandler_REST* get_handler(rgw::sal::Store* store,
struct req_state* const s,
const rgw::auth::StrategyRegistry&,
const std::string&) override {
return new RGWGetHealthCheck_ObjStore_SWIFT();
}
- int init(rgw::sal::RGWRadosStore* const store,
+ int init(rgw::sal::Store* const store,
struct req_state* const state,
rgw::io::BasicClient* const cio) override {
state->dialect = "swift";
RGWRESTMgr_SWIFT_HealthCheck() = default;
~RGWRESTMgr_SWIFT_HealthCheck() override = default;
- RGWHandler_REST* get_handler(rgw::sal::RGWRadosStore *store,
+ RGWHandler_REST* get_handler(rgw::sal::Store* store,
struct req_state* const s,
const rgw::auth::StrategyRegistry&,
const std::string&) override {
return new RGWInfo_ObjStore_SWIFT();
}
- int init(rgw::sal::RGWRadosStore* const store,
+ int init(rgw::sal::Store* const store,
struct req_state* const state,
rgw::io::BasicClient* const cio) override {
state->dialect = "swift";
RGWRESTMgr_SWIFT_Info() = default;
~RGWRESTMgr_SWIFT_Info() override = default;
- RGWHandler_REST *get_handler(rgw::sal::RGWRadosStore *store,
+ RGWHandler_REST *get_handler(rgw::sal::Store* store,
struct req_state* s,
const rgw::auth::StrategyRegistry& auth_registry,
const std::string& frontend_prefix) override;