static const int HEAD_VERSION = 5;
static const int COMPAT_VERSION = 1;
- epoch_t epoch;
+ epoch_t epoch = 0;
public:
vector<pair<pg_notify_t,PastIntervals> > pg_list;
static const int HEAD_VERSION = 5;
static const int COMPAT_VERSION = 2;
- epoch_t epoch;
+ epoch_t epoch = 0;
/// query_epoch is the epoch of the query being responded to, or
/// the current epoch if this is not being sent in response to a
/// query. This allows the recipient to disregard responses to old
/// queries.
- epoch_t query_epoch;
+ epoch_t query_epoch = 0;
public:
shard_id_t to;
static const int HEAD_VERSION = 6;
static const int COMPAT_VERSION = 2;
- epoch_t epoch;
+ epoch_t epoch = 0;
/// query_epoch is the epoch of the query being responded to, or
/// the current epoch if this is not being sent in response to a
/// query. This allows the recipient to disregard responses to old
static const int HEAD_VERSION = 4;
static const int COMPAT_VERSION = 3;
- version_t epoch;
+ version_t epoch = 0;
public:
version_t get_epoch() const { return epoch; }
static const int HEAD_VERSION = 3;
static const int COMPAT_VERSION = 2;
- epoch_t epoch;
+ epoch_t epoch = 0;
public:
vector<spg_t> pg_list;
}
}
- __u32 op;
- epoch_t map_epoch, query_epoch;
+ __u32 op = 0;
+ epoch_t map_epoch = 0, query_epoch = 0;
pg_shard_t from;
spg_t pgid;
hobject_t begin, end;
class MOSDPGTemp : public PaxosServiceMessage {
public:
- epoch_t map_epoch;
+ epoch_t map_epoch = 0;
map<pg_t, vector<int32_t> > pg_temp;
MOSDPGTemp(epoch_t e) : PaxosServiceMessage(MSG_OSD_PGTEMP, e), map_epoch(e) { }
static const int COMPAT_VERSION = 2;
public:
- epoch_t epoch;
+ epoch_t epoch = 0;
spg_t pgid;
eversion_t trim_to;
}
uuid_d fsid;
- epoch_t map_epoch;
- __u8 op;
+ epoch_t map_epoch = 0;
+ __u8 op = 0;
utime_t stamp;
uint32_t min_message_size;
spg_t pgid; // PG to scrub
eversion_t scrub_from; // only scrub log entries after scrub_from
eversion_t scrub_to; // last_update_applied when message sent
- epoch_t map_epoch, min_epoch;
+ epoch_t map_epoch = 0, min_epoch = 0;
bool chunky; // true for chunky scrubs
hobject_t start; // lower bound of scrub, inclusive
hobject_t end; // upper bound of scrub, exclusive
uuid_d fsid;
vector<pg_t> scrub_pgs;
- bool repair;
- bool deep;
+ bool repair = false;
+ bool deep = false;
MOSDScrub() : Message(MSG_OSD_SCRUB, HEAD_VERSION, COMPAT_VERSION) {}
MOSDScrub(const uuid_d& f, bool r, bool d) :
static const int COMPAT_VERSION = 7;
public:
- epoch_t map_epoch;
+ epoch_t map_epoch = 0;
// metadata from original request
osd_reqid_t reqid;
hobject_t poid;
object_locator_t oloc;
- __u8 acks_wanted;
+ __u8 acks_wanted = 0;
// op to exec
vector<OSDOp> ops;
utime_t mtime;
- bool old_exists;
- uint64_t old_size;
+ bool old_exists = false;
+ uint64_t old_size = 0;
eversion_t old_version;
SnapSet snapset;
interval_set<uint64_t> data_subset;
map<hobject_t, interval_set<uint64_t>> clone_subsets;
- bool first, complete;
+ bool first = false, complete = false;
interval_set<uint64_t> data_included;
ObjectRecoveryInfo recovery_info;
static const int HEAD_VERSION = 2;
static const int COMPAT_VERSION = 1;
public:
- epoch_t map_epoch;
+ epoch_t map_epoch = 0;
// subop metadata
osd_reqid_t reqid;
vector<OSDOp> ops;
// result
- __u8 ack_type;
- int32_t result;
+ __u8 ack_type = 0;
+ int32_t result = 0;
// piggybacked osd state
eversion_t last_complete_ondisk;
uuid_d fsid;
map<pg_t,pg_stat_t> pg_stat;
osd_stat_t osd_stat;
- epoch_t epoch;
+ epoch_t epoch = 0;
utime_t had_map_for;
MPGStats() : PaxosServiceMessage(MSG_PGSTATS, 0) {}
public:
uuid_d fsid;
- __u32 pool;
+ __u32 pool = 0;
string name;
- __u32 op;
- uint64_t auid;
+ __u32 op = 0;
+ uint64_t auid = 0;
snapid_t snapid;
- __s16 crush_rule;
+ __s16 crush_rule = 0;
MPoolOp()
: PaxosServiceMessage(CEPH_MSG_POOLOP, 0, HEAD_VERSION, COMPAT_VERSION) { }
class MPoolOpReply : public PaxosServiceMessage {
public:
uuid_d fsid;
- __u32 replyCode;
- epoch_t epoch;
+ __u32 replyCode = 0;
+ epoch_t epoch = 0;
bufferlist response_data;
MPoolOpReply() : PaxosServiceMessage(CEPH_MSG_POOLOP_REPLY, 0)