[req, lcod=peering_state.get_info().last_complete, this] {
peering_state.update_last_complete_ondisk(lcod);
const auto map_epoch = get_osdmap_epoch();
- auto reply = ceph::make_message<MOSDRepOpReply>(
+ auto reply = crimson::make_message<MOSDRepOpReply>(
req.get(), pg_whoami, 0,
map_epoch, req->get_min_epoch(), CEPH_OSD_FLAG_ONDISK);
reply->set_last_complete_ondisk(lcod);
- return shard_services.send_to_osd(req->from.osd, reply, map_epoch);
+ return shard_services.send_to_osd(req->from.osd, std::move(reply), map_epoch);
});
}
}
}
-template<class MsgT>
-seastar::future<> ShardServices::do_send_to_osd(
- int peer, MsgT m, epoch_t from_epoch)
+seastar::future<> ShardServices::send_to_osd(
+ int peer, MessageURef m, epoch_t from_epoch)
{
if (osdmap->is_down(peer)) {
logger().info("{}: osd.{} is_down", __func__, peer);
}
}
-seastar::future<> ShardServices::send_to_osd(
- int peer, MessageRef m, epoch_t from_epoch)
-{
- return do_send_to_osd(peer, std::move(m), from_epoch);
-}
-
-seastar::future<> ShardServices::send_to_osd(
- int peer, MessageURef m, epoch_t from_epoch)
-{
- return do_send_to_osd(peer, std::move(m), from_epoch);
-}
-
seastar::future<> ShardServices::dispatch_context_transaction(
crimson::os::CollectionRef col, PeeringCtx &ctx) {
auto ret = store.do_transaction(
const char** get_tracked_conf_keys() const final;
void handle_conf_change(const ConfigProxy& conf,
const std::set <std::string> &changed) final;
- template<class MsgT>
- seastar::future<> do_send_to_osd(int peer, MsgT m, epoch_t from_epoch);
public:
ShardServices(
crimson::mgr::Client &mgrc,
crimson::os::FuturizedStore &store);
- seastar::future<> send_to_osd(
- int peer,
- MessageRef m,
- epoch_t from_epoch);
-
seastar::future<> send_to_osd(
int peer,
MessageURef m,