using result_t = Scrub::SnapMapReaderI::result_t;
using code_t = Scrub::SnapMapReaderI::result_t::code_t;
-
-const string SnapMapper::MAPPING_PREFIX = "SNA_";
-const string SnapMapper::OBJECT_PREFIX = "OBJ_";
-
-const char *SnapMapper::PURGED_SNAP_PREFIX = "PSN_";
+static const std::string MAPPING_PREFIX = "SNA_";
+static const std::string OBJECT_PREFIX = "OBJ_";
+static const char *PURGED_SNAP_PREFIX = "PSN_";
/*
}
};
- static const std::string LEGACY_MAPPING_PREFIX;
- static const std::string MAPPING_PREFIX;
- static const std::string OBJECT_PREFIX;
- static const char *PURGED_SNAP_EPOCH_PREFIX;
- static const char *PURGED_SNAP_PREFIX;
-
#ifndef WITH_CRIMSON
struct Scrubber {
CephContext *cct;
// -- pg_pool_t --
-const char *pg_pool_t::APPLICATION_NAME_CEPHFS("cephfs");
-const char *pg_pool_t::APPLICATION_NAME_RBD("rbd");
-const char *pg_pool_t::APPLICATION_NAME_RGW("rgw");
-
void pg_pool_t::dump(Formatter *f) const
{
f->dump_stream("create_time") << get_create_time();
DECODE_FINISH(_bl);
}
-std::atomic<uint32_t> ObjectCleanRegions::max_num_intervals = {10};
-
void ObjectCleanRegions::set_max_num_intervals(uint32_t num)
{
max_num_intervals = num;
* pg_pool
*/
struct pg_pool_t {
- static const char *APPLICATION_NAME_CEPHFS;
- static const char *APPLICATION_NAME_RBD;
- static const char *APPLICATION_NAME_RGW;
+ inline static constexpr const char *APPLICATION_NAME_CEPHFS = "cephfs";
+ inline static constexpr const char *APPLICATION_NAME_RBD = "rbd";
+ inline static constexpr const char *APPLICATION_NAME_RGW = "rgw";
enum {
TYPE_REPLICATED = 1, // replication
bool new_object;
bool clean_omap;
interval_set<uint64_t> clean_offsets;
- static std::atomic<uint32_t> max_num_intervals;
+ inline static std::atomic<uint32_t> max_num_intervals{10};
/**
* trim the number of intervals if clean_offsets.num_intervals()