as we prefer sending MOSDPGNotify2 over MOSDPGNotify in PeeringState
in post octopus, to be more consistent and have one less thing to
worry, let's just use MOSDPGNotify2 in OSD.cc as well.
Fixes: https://tracker.ceph.com/issues/49758
Signed-off-by: Kefu Chai <kchai@redhat.com>
osdmap->get_epoch(), empty,
q.query.epoch_sent);
} else {
- vector<pg_notify_t> ls;
- ls.push_back(
- pg_notify_t(
- q.query.from, q.query.to,
- q.query.epoch_sent,
- osdmap->get_epoch(),
- empty,
- PastIntervals()));
- m = new MOSDPGNotify(osdmap->get_epoch(), std::move(ls));
+ pg_notify_t notify{q.query.from, q.query.to,
+ q.query.epoch_sent,
+ osdmap->get_epoch(),
+ empty,
+ PastIntervals()};
+ m = new MOSDPGNotify2(spg_t{pgid.pgid, q.query.from},
+ std::move(notify));
}
service.maybe_share_map(con.get(), osdmap);
con->send_message(m);