summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rgw/rgw_common.h')
-rw-r--r--src/rgw/rgw_common.h27
1 files changed, 19 insertions, 8 deletions
diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h
index 67333be9988..ee17e2c8d43 100644
--- a/src/rgw/rgw_common.h
+++ b/src/rgw/rgw_common.h
@@ -25,6 +25,7 @@
#include "common/ceph_crypto.h"
#include "common/random_string.h"
+#include "common/tracer.h"
#include "rgw_acl.h"
#include "rgw_bucket_layout.h"
#include "rgw_cors.h"
@@ -43,7 +44,6 @@
#include "cls/rgw/cls_rgw_types.h"
#include "include/rados/librados.hpp"
#include "rgw_public_access.h"
-#include "common/tracer.h"
#include "rgw_sal_fwd.h"
namespace ceph {
@@ -75,8 +75,8 @@ using ceph::crypto::MD5;
#define RGW_SYS_PARAM_PREFIX "rgwx-"
#define RGW_ATTR_ACL RGW_ATTR_PREFIX "acl"
-#define RGW_ATTR_RATELIMIT RGW_ATTR_PREFIX "ratelimit"
-#define RGW_ATTR_LC RGW_ATTR_PREFIX "lc"
+#define RGW_ATTR_RATELIMIT RGW_ATTR_PREFIX "ratelimit"
+#define RGW_ATTR_LC RGW_ATTR_PREFIX "lc"
#define RGW_ATTR_CORS RGW_ATTR_PREFIX "cors"
#define RGW_ATTR_ETAG RGW_ATTR_PREFIX "etag"
#define RGW_ATTR_BUCKETS RGW_ATTR_PREFIX "buckets"
@@ -1073,8 +1073,8 @@ struct req_info {
std::string storage_class;
req_info(CephContext *cct, const RGWEnv *env);
- void rebuild_from(req_info& src);
- void init_meta_info(const DoutPrefixProvider *dpp, bool *found_bad_meta);
+ void rebuild_from(const req_info& src);
+ void init_meta_info(const DoutPrefixProvider *dpp, bool *found_bad_meta, const int prot_flags);
};
struct req_init_state {
@@ -1232,7 +1232,7 @@ struct req_state : DoutPrefixProvider {
std::vector<rgw::IAM::Policy> session_policies;
- jspan trace;
+ jspan_ptr trace;
bool trace_enabled = false;
//Principal tags that come in as part of AssumeRoleWithWebIdentity
@@ -1368,6 +1368,17 @@ struct multipart_upload_info
decode(dest_placement, bl);
DECODE_FINISH(bl);
}
+
+ void dump(Formatter *f) const {
+ dest_placement.dump(f);
+ }
+
+ static void generate_test_instances(std::list<multipart_upload_info*>& o) {
+ o.push_back(new multipart_upload_info);
+ o.push_back(new multipart_upload_info);
+ o.back()->dest_placement.name = "dest_placement";
+ o.back()->dest_placement.storage_class = "dest_storage_class";
+ }
};
WRITE_CLASS_ENCODER(multipart_upload_info)
@@ -1759,8 +1770,8 @@ static constexpr uint32_t MATCH_POLICY_STRING = 0x08;
extern bool match_policy(std::string_view pattern, std::string_view input,
uint32_t flag);
-extern std::string camelcase_dash_http_attr(const std::string& orig);
-extern std::string lowercase_dash_http_attr(const std::string& orig);
+extern std::string camelcase_dash_http_attr(const std::string& orig, bool convert2dash = true);
+extern std::string lowercase_dash_http_attr(const std::string& orig, bool bidirection = false);
void rgw_setup_saved_curl_handles();
void rgw_release_all_curl_handles();