class MOSDPGPull : public MOSDFastDispatchOp {
static const int HEAD_VERSION = 2;
- static const int COMPAT_VERSION = 1;
+ static const int COMPAT_VERSION = 2;
vector<PullOp> pulls;
::decode(map_epoch, p);
::decode(pulls, p);
::decode(cost, p);
- if (header.version >= 2) {
- ::decode(pgid.shard, p);
- ::decode(from, p);
- } else {
- pgid.shard = shard_id_t::NO_SHARD;
- from = pg_shard_t(get_source().num(), shard_id_t::NO_SHARD);
- }
+ ::decode(pgid.shard, p);
+ ::decode(from, p);
}
void encode_payload(uint64_t features) override {