* pass a ScrubMap from a shard back to the primary
*/
-class MOSDRepScrubMap : public MOSDFastDispatchOp {
+class MOSDRepScrubMap final : public MOSDFastDispatchOp {
public:
static constexpr int HEAD_VERSION = 2;
static constexpr int COMPAT_VERSION = 1;
spg_t pgid; // primary spg_t
epoch_t map_epoch = 0;
pg_shard_t from; // whose scrubmap this is
- bufferlist scrub_map_bl;
+ ceph::buffer::list scrub_map_bl;
bool preempted = false;
epoch_t get_map_epoch() const override {
from(from) {}
private:
- ~MOSDRepScrubMap() {}
+ ~MOSDRepScrubMap() final {}
public:
std::string_view get_type_name() const override { return "rep_scrubmap"; }
- void print(ostream& out) const override {
+ void print(std::ostream& out) const override {
out << "rep_scrubmap(" << pgid << " e" << map_epoch
<< " from shard " << from
<< (preempted ? " PREEMPTED":"") << ")";
encode(preempted, payload);
}
void decode_payload() override {
+ using ceph::decode;
auto p = payload.cbegin();
decode(pgid, p);
decode(map_epoch, p);