#include "services/svc_zone.h"
#define dout_context g_ceph_context
-#define dout_subsys ceph_subsys_rgw
#define SECRET_KEY_LEN 40
#define PUBLIC_ID_LEN 20
using namespace std;
static rgw::sal::Store* store = NULL;
+static constexpr auto dout_subsys = ceph_subsys_rgw;
+
static const DoutPrefixProvider* dpp() {
struct GlobalPrefix : public DoutPrefixProvider {
#include <sstream>
#define dout_context g_ceph_context
-#define dout_subsys ceph_subsys_rgw
+
+static constexpr auto dout_subsys = ceph_subsys_rgw;
using rgw::ARN;
using rgw::IAM::Effect;
#include "services/svc_sys_obj.h"
#include "services/svc_bucket.h"
-#define dout_subsys ceph_subsys_rgw
-
struct rgw_http_param_pair;
class RGWRESTConn;
#include "services/svc_zone_utils.h"
#include "include/ceph_assert.h"
-#define dout_subsys ceph_subsys_rgw
-
class OpsLogSink;
namespace rgw {
rgw::LDAPHelper* get_ldh() { return ldh; }
CephContext *get_cct() const override { return cct.get(); }
- unsigned get_subsys() const { return dout_subsys; }
+ unsigned get_subsys() const { return ceph_subsys_rgw; }
std::ostream& gen_prefix(std::ostream& out) const { return out << "lib rgw: "; }
int init();
#include <fstream>
#include "rgw_sal_fwd.h"
-#define dout_subsys ceph_subsys_rgw
-
struct rgw_log_entry {
using headers_map = boost::container::flat_map<std::string, std::string>;
#include <sys/prctl.h>
#endif
-#define dout_subsys ceph_subsys_rgw
-
using namespace std;
+static constexpr auto dout_subsys = ceph_subsys_rgw;
+
namespace {
TracepointProvider::Traits rgw_op_tracepoint_traits("librgw_op_tp.so",
"rgw_op_tracing");
#include "rgw_sal_rados.h"
-#define dout_subsys ceph_subsys_rgw
-
#define RGW_ORPHAN_INDEX_OID "orphan.index"
#define RGW_ORPHAN_INDEX_PREFIX "orphan.scan"
#include <atomic>
-#if !defined(dout_subsys)
-#define dout_subsys ceph_subsys_rgw
-#define def_dout_subsys
-#endif
-
#define dout_context g_ceph_context
extern void signal_shutdown();
rgw::sal::Store* store,
bool skip_retarget = false);
-#if defined(def_dout_subsys)
-#undef def_dout_subsys
-#undef dout_subsys
-#endif
#undef dout_context
#endif /* RGW_PROCESS_H */
#include "rgw_rados.h"
#include "rgw_worker.h"
-
#define dout_context g_ceph_context
+static constexpr auto dout_subsys = ceph_subsys_rgw;
+
using namespace std;
+
RGWSyncTraceNode::RGWSyncTraceNode(CephContext *_cct, uint64_t _handle,
const RGWSyncTraceNodeRef& _parent,
const string& _type, const string& _id) : cct(_cct),
-
-
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab ft=cpp
#include "common/ceph_mutex.h"
#include "include/common_fwd.h"
-#define dout_subsys ceph_subsys_rgw
-
class RGWRados;
class RGWRadosThread {
}
CephContext *get_cct() const { return cct; }
- unsigned get_subsys() const { return dout_subsys; }
+ unsigned get_subsys() const { return ceph_subsys_rgw; }
std::ostream& gen_prefix(std::ostream& out) const { return out << "rgw rados thread: "; }
};
#include <fstream>
#include "common/dout.h"
-#define dout_subsys ceph_subsys_rgw
#undef dout_prefix
#define dout_prefix *_dout << "rgw dbstore: "
#include <filesystem>
+static constexpr auto dout_subsys = ceph_subsys_rgw;
+
using namespace std;
+
/* Given a tenant, find and return the DBStore handle.
* If not found and 'create' set to true, create one
* and return