public:
friend factory;
private:
- static const int HEAD_VERSION = 4;
- static const int COMPAT_VERSION = 4;
+ static constexpr int HEAD_VERSION = 4;
+ static constexpr int COMPAT_VERSION = 4;
public:
spg_t pgid;
epoch_t query_epoch;
friend factory;
private:
- static const int HEAD_VERSION = 2;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 2;
+ static constexpr int COMPAT_VERSION = 1;
public:
struct ceph_mds_cap_release head;
friend factory;
private:
- static const int HEAD_VERSION = 11;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 11;
+ static constexpr int COMPAT_VERSION = 1;
public:
- static const unsigned FLAG_SYNC = (1<<0);
- static const unsigned FLAG_NO_CAPSNAP = (1<<1); // unused
- static const unsigned FLAG_PENDING_CAPSNAP = (1<<2);
+ static constexpr unsigned FLAG_SYNC = (1<<0);
+ static constexpr unsigned FLAG_NO_CAPSNAP = (1<<1); // unused
+ static constexpr unsigned FLAG_PENDING_CAPSNAP = (1<<2);
struct ceph_mds_caps_head head;
public:
friend factory;
private:
- const static int HEAD_VERSION = 3;
+ static constexpr int HEAD_VERSION = 3;
public:
map<inodeno_t, cap_reconnect_t> caps; // only head inodes
public:
friend factory;
private:
- static const int HEAD_VERSION = 4;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 4;
+ static constexpr int COMPAT_VERSION = 1;
public:
mutable struct ceph_mds_request_head head; /* XXX HACK! */
public:
friend factory;
private:
- static const int HEAD_VERSION = 3;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 3;
+ static constexpr int COMPAT_VERSION = 1;
public:
ceph_mds_session_head head;
public:
friend factory;
- static const int HEAD_VERSION = 1;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 1;
+ static constexpr int COMPAT_VERSION = 1;
map<string,string> config;
public:
friend factory;
- static const int HEAD_VERSION = 1;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 1;
+ static constexpr int COMPAT_VERSION = 1;
std::string tag;
uint32_t counter = 0;
public:
friend factory;
private:
- static const int HEAD_VERSION = 2;
+ static constexpr int HEAD_VERSION = 2;
// info about original request
inodeno_t base_ino;
public:
friend factory;
private:
- static const int HEAD_VERSION = 2;
- static const int COMPAT_VERSION = 1;
- public:
+ static constexpr int HEAD_VERSION = 2;
+ static constexpr int COMPAT_VERSION = 1;
+public:
inodeno_t ino;
bufferlist cap_bl;
map<client_t,entity_inst_t> client_map;
string msg_desc; // for operator<< only
- static const int HEAD_VERSION = 4;
- static const int COMPAT_VERSION = 4;
+ static constexpr int HEAD_VERSION = 4;
+ static constexpr int COMPAT_VERSION = 4;
MForward() : MessageInstance(MSG_FORWARD, HEAD_VERSION, COMPAT_VERSION),
tid(0), con_features(0), msg(NULL) {}
public:
friend factory;
- static const int HEAD_VERSION = 1;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 1;
+ static constexpr int COMPAT_VERSION = 1;
EntityName name; ///< e.g., mon.a, client.foo
string host; ///< our hostname
friend factory;
private:
- static const int HEAD_VERSION = 7;
- static const int COMPAT_VERSION = 6;
+ static constexpr int HEAD_VERSION = 7;
+ static constexpr int COMPAT_VERSION = 6;
uuid_d fsid;
mds_gid_t global_id;
friend factory;
private:
- static const int HEAD_VERSION = 2;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 2;
+ static constexpr int COMPAT_VERSION = 1;
public:
- static const int OP_WEAK = 1; // replica -> auth, i exist, + maybe open files.
- static const int OP_STRONG = 2; // replica -> auth, i exist, + open files and lock state.
- static const int OP_ACK = 3; // auth -> replica, here is your lock state.
+ static constexpr int OP_WEAK = 1; // replica -> auth, i exist, + maybe open files.
+ static constexpr int OP_STRONG = 2; // replica -> auth, i exist, + open files and lock state.
+ static constexpr int OP_ACK = 3; // auth -> replica, here is your lock state.
static const char *get_opname(int op) {
switch (op) {
case OP_WEAK: return "weak";
public:
friend factory;
private:
-
- static const int HEAD_VERSION = 1;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 1;
+ static constexpr int COMPAT_VERSION = 1;
public:
uuid_d fsid;
epoch_t epoch = 0;
public:
friend factory;
- static const int OP_XLOCK = 1;
- static const int OP_XLOCKACK = -1;
- static const int OP_UNXLOCK = 2;
- static const int OP_AUTHPIN = 3;
- static const int OP_AUTHPINACK = -3;
+ static constexpr int OP_XLOCK = 1;
+ static constexpr int OP_XLOCKACK = -1;
+ static constexpr int OP_UNXLOCK = 2;
+ static constexpr int OP_AUTHPIN = 3;
+ static constexpr int OP_AUTHPINACK = -3;
- static const int OP_LINKPREP = 4;
- static const int OP_UNLINKPREP = 5;
- static const int OP_LINKPREPACK = -4;
+ static constexpr int OP_LINKPREP = 4;
+ static constexpr int OP_UNLINKPREP = 5;
+ static constexpr int OP_LINKPREPACK = -4;
- static const int OP_RENAMEPREP = 7;
- static const int OP_RENAMEPREPACK = -7;
+ static constexpr int OP_RENAMEPREP = 7;
+ static constexpr int OP_RENAMEPREPACK = -7;
- static const int OP_WRLOCK = 8;
- static const int OP_WRLOCKACK = -8;
- static const int OP_UNWRLOCK = 9;
+ static constexpr int OP_WRLOCK = 8;
+ static constexpr int OP_WRLOCKACK = -8;
+ static constexpr int OP_UNWRLOCK = 9;
- static const int OP_RMDIRPREP = 10;
- static const int OP_RMDIRPREPACK = -10;
+ static constexpr int OP_RMDIRPREP = 10;
+ static constexpr int OP_RMDIRPREPACK = -10;
- static const int OP_DROPLOCKS = 11;
+ static constexpr int OP_DROPLOCKS = 11;
- static const int OP_RENAMENOTIFY = 12;
- static const int OP_RENAMENOTIFYACK = -12;
+ static constexpr int OP_RENAMENOTIFY = 12;
+ static constexpr int OP_RENAMENOTIFYACK = -12;
- static const int OP_FINISH = 17;
- static const int OP_COMMITTED = -18;
+ static constexpr int OP_FINISH = 17;
+ static constexpr int OP_COMMITTED = -18;
- static const int OP_ABORT = 20; // used for recovery only
- //static const int OP_COMMIT = 21; // used for recovery only
+ static constexpr int OP_ABORT = 20; // used for recovery only
+ //static constexpr int OP_COMMIT = 21; // used for recovery only
- static const char *get_opname(int o) {
+ static constexpr char *get_opname(int o) {
switch (o) {
case OP_XLOCK: return "xlock";
case OP_XLOCKACK: return "xlock_ack";
__s16 op;
mutable __u16 flags; /* XXX HACK for mark_interrupted */
- static const unsigned FLAG_NONBLOCK = 1<<0;
- static const unsigned FLAG_WOULDBLOCK = 1<<1;
- static const unsigned FLAG_NOTJOURNALED = 1<<2;
- static const unsigned FLAG_EROFS = 1<<3;
- static const unsigned FLAG_ABORT = 1<<4;
- static const unsigned FLAG_INTERRUPTED = 1<<5;
+ static constexpr unsigned FLAG_NONBLOCK = 1<<0;
+ static constexpr unsigned FLAG_WOULDBLOCK = 1<<1;
+ static constexpr unsigned FLAG_NOTJOURNALED = 1<<2;
+ static constexpr unsigned FLAG_EROFS = 1<<3;
+ static constexpr unsigned FLAG_ABORT = 1<<4;
+ static constexpr unsigned FLAG_INTERRUPTED = 1<<5;
// for locking
__u16 lock_type; // lock object type
friend factory;
private:
- static const int HEAD_VERSION = 8;
- static const int COMPAT_VERSION = 8;
+ static constexpr int HEAD_VERSION = 8;
+ static constexpr int COMPAT_VERSION = 8;
protected:
uint64_t gid;
friend factory;
private:
- static const int HEAD_VERSION = 1;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 1;
+ static constexpr int COMPAT_VERSION = 1;
public:
std::string daemon_name;
friend factory;
private:
- static const int HEAD_VERSION = 2;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 2;
+ static constexpr int COMPAT_VERSION = 1;
public:
uint32_t stats_period = 0;
friend factory;
private:
- static const int HEAD_VERSION = 3;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 3;
+ static constexpr int COMPAT_VERSION = 1;
public:
friend factory;
private:
- static const int HEAD_VERSION = 6;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 6;
+ static constexpr int COMPAT_VERSION = 1;
public:
/**
friend factory;
private:
- static const int HEAD_VERSION = 7;
- static const int COMPAT_VERSION = 5;
+ static constexpr int HEAD_VERSION = 7;
+ static constexpr int COMPAT_VERSION = 5;
public:
- static const int OP_PROPOSE = 1;
- static const int OP_ACK = 2;
- static const int OP_NAK = 3;
- static const int OP_VICTORY = 4;
+ static constexpr int OP_PROPOSE = 1;
+ static constexpr int OP_ACK = 2;
+ static constexpr int OP_NAK = 3;
+ static constexpr int OP_VICTORY = 4;
static const char *get_opname(int o) {
switch (o) {
case OP_PROPOSE: return "propose";
public:
friend factory;
private:
- static const int HEAD_VERSION = 2;
+ static constexpr int HEAD_VERSION = 2;
public:
MMonGetVersionReply() : MessageInstance(CEPH_MSG_MON_GET_VERSION_REPLY, HEAD_VERSION) { }
public:
friend factory;
- static const int HEAD_VERSION = 1;
+ static constexpr int HEAD_VERSION = 1;
int service_type = 0;
int service_op = 0;
public:
friend factory;
- static const int HEAD_VERSION = 1;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 1;
+ static constexpr int COMPAT_VERSION = 1;
health_check_map_t health_checks;
Metadata data;
private:
- static const int HEAD_VERSION = 1;
+ static constexpr int HEAD_VERSION = 1;
~MMonMetadata() override {}
public:
public:
friend factory;
private:
- static const int HEAD_VERSION = 1;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 1;
+ static constexpr int COMPAT_VERSION = 1;
public:
// PGMapDigest is in data payload
public:
friend factory;
private:
- static const int HEAD_VERSION = 4;
- static const int COMPAT_VERSION = 3;
+ static constexpr int HEAD_VERSION = 4;
+ static constexpr int COMPAT_VERSION = 3;
public:
// op types
- const static int OP_COLLECT = 1; // proposer: propose round
- const static int OP_LAST = 2; // voter: accept proposed round
- const static int OP_BEGIN = 3; // proposer: value proposed for this round
- const static int OP_ACCEPT = 4; // voter: accept propsed value
- const static int OP_COMMIT = 5; // proposer: notify learners of agreed value
- const static int OP_LEASE = 6; // leader: extend peon lease
- const static int OP_LEASE_ACK = 7; // peon: lease ack
+ static constexpr int OP_COLLECT = 1; // proposer: propose round
+ static constexpr int OP_LAST = 2; // voter: accept proposed round
+ static constexpr int OP_BEGIN = 3; // proposer: value proposed for this round
+ static constexpr int OP_ACCEPT = 4; // voter: accept propsed value
+ static constexpr int OP_COMMIT = 5; // proposer: notify learners of agreed value
+ static constexpr int OP_LEASE = 6; // leader: extend peon lease
+ static constexpr int OP_LEASE_ACK = 7; // peon: lease ack
const static char *get_opname(int op) {
switch (op) {
case OP_COLLECT: return "collect";
public:
friend factory;
- static const int HEAD_VERSION = 6;
- static const int COMPAT_VERSION = 5;
+ static constexpr int HEAD_VERSION = 6;
+ static constexpr int COMPAT_VERSION = 5;
enum {
OP_PROBE = 1,
public:
friend factory;
private:
- static const int HEAD_VERSION = 2;
- static const int COMPAT_VERSION = 2;
+ static constexpr int HEAD_VERSION = 2;
+ static constexpr int COMPAT_VERSION = 2;
public:
typedef enum {
public:
friend factory;
- static const int HEAD_VERSION = 3;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 3;
+ static constexpr int COMPAT_VERSION = 1;
string hostname;
map<string, ceph_mon_subscribe_item> what;
public:
friend factory;
private:
- static const int HEAD_VERSION = 2;
- static const int COMPAT_VERSION = 2;
+ static constexpr int HEAD_VERSION = 2;
+ static constexpr int COMPAT_VERSION = 2;
public:
/**
public:
friend factory;
- static const int HEAD_VERSION = 1;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 1;
+ static constexpr int COMPAT_VERSION = 1;
__u32 tag; // ignored tag value
public:
friend factory;
private:
- static const int HEAD_VERSION = 6;
- static const int COMPAT_VERSION = 6;
+ static constexpr int HEAD_VERSION = 6;
+ static constexpr int COMPAT_VERSION = 6;
public:
OSDSuperblock sb;
public:
friend factory;
private:
- static const int HEAD_VERSION = 3;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 3;
+ static constexpr int COMPAT_VERSION = 1;
public:
spg_t pgid;
public:
friend factory;
private:
- static const int HEAD_VERSION = 2;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 2;
+ static constexpr int COMPAT_VERSION = 1;
public:
spg_t pgid;
public:
friend factory;
private:
- static const int HEAD_VERSION = 2;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 2;
+ static constexpr int COMPAT_VERSION = 1;
public:
spg_t pgid;
public:
friend factory;
private:
- static const int HEAD_VERSION = 2;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 2;
+ static constexpr int COMPAT_VERSION = 1;
public:
spg_t pgid;
public:
friend factory;
private:
- static const int HEAD_VERSION = 4;
- static const int COMPAT_VERSION = 4;
+ static constexpr int HEAD_VERSION = 4;
+ static constexpr int COMPAT_VERSION = 4;
public:
enum {
public:
friend factory;
- static const int HEAD_VERSION = 2;
- static const int COMPAT_VERSION = 2;
+ static constexpr int HEAD_VERSION = 2;
+ static constexpr int COMPAT_VERSION = 2;
uuid_d fsid;
vector<spg_t> forced_pgs;
public:
friend factory;
private:
- static const int HEAD_VERSION = 4;
- static const int COMPAT_VERSION = 3;
+ static constexpr int HEAD_VERSION = 4;
+ static constexpr int COMPAT_VERSION = 3;
public:
uuid_d fsid;
public:
friend factory;
private:
- static const int HEAD_VERSION = 3;
- static const int COMPAT_VERSION = 3;
+ static constexpr int HEAD_VERSION = 3;
+ static constexpr int COMPAT_VERSION = 3;
public:
uuid_d fsid;
public:
friend factory;
private:
- static const int HEAD_VERSION = 8;
- static const int COMPAT_VERSION = 3;
+ static constexpr int HEAD_VERSION = 8;
+ static constexpr int COMPAT_VERSION = 3;
private:
uint32_t client_inc = 0;
public:
friend factory;
private:
- static const int HEAD_VERSION = 8;
- static const int COMPAT_VERSION = 2;
+ static constexpr int HEAD_VERSION = 8;
+ static constexpr int COMPAT_VERSION = 2;
object_t oid;
pg_t pgid;
public:
friend factory;
private:
- static const int HEAD_VERSION = 3;
- static const int COMPAT_VERSION = 3;
+ static constexpr int HEAD_VERSION = 3;
+ static constexpr int COMPAT_VERSION = 3;
public:
enum {
OP_BACKFILL_PROGRESS = 2,
public:
friend factory;
- static const int HEAD_VERSION = 1;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 1;
+ static constexpr int COMPAT_VERSION = 1;
spg_t pgid; ///< target spg_t
epoch_t map_epoch = 0;
public:
friend factory;
- const static int HEAD_VERSION = 3;
- const static int COMPAT_VERSION = 3;
+ static constexpr int HEAD_VERSION = 3;
+ static constexpr int COMPAT_VERSION = 3;
version_t epoch = 0;
map<pg_t,pg_create_t> mkpg;
public:
friend factory;
- const static int HEAD_VERSION = 1;
- const static int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 1;
+ static constexpr int COMPAT_VERSION = 1;
epoch_t epoch = 0;
map<spg_t,pair<epoch_t,utime_t>> pgs;
public:
friend factory;
private:
- static const int HEAD_VERSION = 5;
- static const int COMPAT_VERSION = 5;
+ static constexpr int HEAD_VERSION = 5;
+ static constexpr int COMPAT_VERSION = 5;
epoch_t epoch = 0;
public:
friend factory;
private:
- static const int HEAD_VERSION = 5;
- static const int COMPAT_VERSION = 5;
+ static constexpr int HEAD_VERSION = 5;
+ static constexpr int COMPAT_VERSION = 5;
epoch_t epoch = 0;
/// query_epoch is the epoch of the query being responded to, or
public:
friend factory;
private:
- static const int HEAD_VERSION = 6;
- static const int COMPAT_VERSION = 6;
+ static constexpr int HEAD_VERSION = 6;
+ static constexpr int COMPAT_VERSION = 6;
epoch_t epoch = 0;
/// query_epoch is the epoch of the query being responded to, or
public:
friend factory;
private:
- static const int HEAD_VERSION = 3;
- static const int COMPAT_VERSION = 2;
+ static constexpr int HEAD_VERSION = 3;
+ static constexpr int COMPAT_VERSION = 2;
vector<PullOp> pulls;
public:
friend factory;
private:
- static const int HEAD_VERSION = 3;
- static const int COMPAT_VERSION = 2;
+ static constexpr int HEAD_VERSION = 3;
+ static constexpr int COMPAT_VERSION = 2;
public:
pg_shard_t from;
public:
friend factory;
private:
- static const int HEAD_VERSION = 3;
- static const int COMPAT_VERSION = 2;
+ static constexpr int HEAD_VERSION = 3;
+ static constexpr int COMPAT_VERSION = 2;
public:
pg_shard_t from;
public:
friend factory;
private:
- static const int HEAD_VERSION = 4;
- static const int COMPAT_VERSION = 4;
+ static constexpr int HEAD_VERSION = 4;
+ static constexpr int COMPAT_VERSION = 4;
version_t epoch = 0;
public:
friend factory;
- static const int HEAD_VERSION = 2;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 2;
+ static constexpr int COMPAT_VERSION = 1;
pg_shard_t from;
spg_t pgid; ///< target spg_t
public:
friend factory;
- static const int HEAD_VERSION = 2;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 2;
+ static constexpr int COMPAT_VERSION = 1;
pg_shard_t from;
spg_t pgid;
public:
friend factory;
private:
- static const int HEAD_VERSION = 3;
- static const int COMPAT_VERSION = 3;
+ static constexpr int HEAD_VERSION = 3;
+ static constexpr int COMPAT_VERSION = 3;
epoch_t epoch = 0;
public:
friend factory;
private:
- static const int HEAD_VERSION = 2;
- static const int COMPAT_VERSION = 2;
+ static constexpr int HEAD_VERSION = 2;
+ static constexpr int COMPAT_VERSION = 2;
public:
enum {
public:
friend factory;
private:
- static const int HEAD_VERSION = 2;
- static const int COMPAT_VERSION = 2;
+ static constexpr int HEAD_VERSION = 2;
+ static constexpr int COMPAT_VERSION = 2;
public:
epoch_t epoch = 0;
public:
friend factory;
private:
- static const int HEAD_VERSION = 3;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 3;
+ static constexpr int COMPAT_VERSION = 1;
public:
public:
friend factory;
private:
- static const int HEAD_VERSION = 3;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 3;
+ static constexpr int COMPAT_VERSION = 1;
public:
public:
friend factory;
private:
- static const int HEAD_VERSION = 4;
- static const int COMPAT_VERSION = 4;
+ static constexpr int HEAD_VERSION = 4;
+ static constexpr int COMPAT_VERSION = 4;
public:
enum {
public:
friend factory;
private:
- static const int HEAD_VERSION = 2;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 2;
+ static constexpr int COMPAT_VERSION = 1;
public:
epoch_t map_epoch, min_epoch;
public:
friend factory;
private:
- static const int HEAD_VERSION = 2;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 2;
+ static constexpr int COMPAT_VERSION = 1;
public:
epoch_t map_epoch, min_epoch;
public:
friend factory;
- static const int HEAD_VERSION = 9;
- static const int COMPAT_VERSION = 6;
+ static constexpr int HEAD_VERSION = 9;
+ static constexpr int COMPAT_VERSION = 6;
spg_t pgid; // PG to scrub
eversion_t scrub_from; // only scrub log entries after scrub_from
public:
friend factory;
- static const int HEAD_VERSION = 2;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 2;
+ static constexpr int COMPAT_VERSION = 1;
spg_t pgid; // primary spg_t
epoch_t map_epoch = 0;
public:
friend factory;
- static const int HEAD_VERSION = 2;
- static const int COMPAT_VERSION = 2;
+ static constexpr int HEAD_VERSION = 2;
+ static constexpr int COMPAT_VERSION = 2;
uuid_d fsid;
vector<pg_t> scrub_pgs;
public:
friend factory;
- static const int HEAD_VERSION = 1;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 1;
+ static constexpr int COMPAT_VERSION = 1;
uuid_d fsid;
epoch_t epoch;
public:
friend factory;
private:
- static const int HEAD_VERSION = 1;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 1;
+ static constexpr int COMPAT_VERSION = 1;
public:
spg_t pgid;
epoch_t map_epoch;
public:
friend factory;
private:
- static const int HEAD_VERSION = 4;
- static const int COMPAT_VERSION = 2;
+ static constexpr int HEAD_VERSION = 4;
+ static constexpr int COMPAT_VERSION = 2;
public:
uuid_d fsid;
public:
friend factory;
private:
- static const int HEAD_VERSION = 3;
- static const int COMPAT_VERSION = 2;
+ static constexpr int HEAD_VERSION = 3;
+ static constexpr int COMPAT_VERSION = 2;
public:
spg_t pgid;
epoch_t query_epoch;
public:
friend factory;
- static const int HEAD_VERSION = 3;
- static const int COMPAT_VERSION = 3;
+ static constexpr int HEAD_VERSION = 3;
+ static constexpr int COMPAT_VERSION = 3;
uint64_t session_mon_tid;
Message *msg;
public:
friend factory;
private:
- static const int HEAD_VERSION = 2;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 2;
+ static constexpr int COMPAT_VERSION = 1;
public:
uuid_d fsid;
public:
friend factory;
- static const int HEAD_VERSION = 1;
+ static constexpr int HEAD_VERSION = 1;
enum {
OP_PING = 1,
public:
friend factory;
- static const int HEAD_VERSION = 1;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 1;
+ static constexpr int COMPAT_VERSION = 1;
enum {
OP_PING = 1,
public:
friend factory;
private:
- static const int HEAD_VERSION = 3;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 3;
+ static constexpr int COMPAT_VERSION = 1;
public:
uint64_t cookie; ///< client unique id for this watch or notify
class mon_feature_t {
- static const int HEAD_VERSION = 1;
- static const int COMPAT_VERSION = 1;
+ static constexpr int HEAD_VERSION = 1;
+ static constexpr int COMPAT_VERSION = 1;
// mon-specific features
uint64_t features;