uuid_d fsid;
entity_inst_t target_osd;
- __u8 flags;
- epoch_t epoch;
- int32_t failed_for; // known to be failed since at least this long
+ __u8 flags = 0;
+ epoch_t epoch = 0;
+ int32_t failed_for = 0; // known to be failed since at least this long
MOSDFailure() : PaxosServiceMessage(MSG_OSD_FAILURE, 0, HEAD_VERSION) { }
MOSDFailure(const uuid_d &fs, const entity_inst_t& f, int duration, epoch_t e)
uuid_d fsid;
map<epoch_t, bufferlist> maps;
map<epoch_t, bufferlist> incremental_maps;
- epoch_t oldest_map, newest_map;
+ epoch_t oldest_map =0, newest_map = 0;
epoch_t get_first() const {
epoch_t e = 0;
static const int COMPAT_VERSION = 3;
private:
- uint32_t client_inc;
- __u32 osdmap_epoch;
- __u32 flags;
+ uint32_t client_inc = 0;
+ __u32 osdmap_epoch = 0;
+ __u32 flags = 0;
utime_t mtime;
- int32_t retry_attempt; // 0 is first attempt. -1 if we don't know.
+ int32_t retry_attempt = -1; // 0 is first attempt. -1 if we don't know.
hobject_t hobj;
spg_t pgid;
object_t oid;
pg_t pgid;
vector<OSDOp> ops;
- int64_t flags;
+ int64_t flags = 0;
errorcode32_t result;
eversion_t bad_replay_version;
eversion_t replay_version;
- version_t user_version;
- epoch_t osdmap_epoch;
- int32_t retry_attempt;
+ version_t user_version = 0;
+ epoch_t osdmap_epoch = 0;
+ int32_t retry_attempt = -1;
bool do_redirect;
request_redirect_t redirect;
}
}
- __u32 op;
- epoch_t map_epoch, query_epoch;
+ __u32 op = 0;
+ epoch_t map_epoch = 0, query_epoch = 0;
spg_t pgid;
hobject_t last_backfill;
pg_stat_t stats;
const static int HEAD_VERSION = 3;
const static int COMPAT_VERSION = 3;
- version_t epoch;
+ version_t epoch = 0;
map<pg_t,pg_create_t> mkpg;
map<pg_t,utime_t> ctimes;