MBackfillReserve()
: MessageInstance(MSG_OSD_BACKFILL_RESERVE, HEAD_VERSION, COMPAT_VERSION),
- query_epoch(0), type(-1), priority(-1) {}
+ query_epoch(0), type(-1), priority(-1), primary_num_bytes(0),
+ shard_num_bytes(0) {}
MBackfillReserve(int type,
spg_t pgid,
- epoch_t query_epoch, unsigned prio = -1)
+ epoch_t query_epoch, unsigned prio = -1,
+ int64_t primary_num_bytes = 0,
+ int64_t shard_num_bytes = 0)
: MessageInstance(MSG_OSD_BACKFILL_RESERVE, HEAD_VERSION, COMPAT_VERSION),
pgid(pgid), query_epoch(query_epoch),
- type(type), priority(prio) {}
+ type(type), priority(prio), primary_num_bytes(primary_num_bytes),
+ shard_num_bytes(shard_num_bytes) {}
- const char *get_type_name() const override {
+ std::string_view get_type_name() const override {
return "MBackfillReserve";
}