{
logger().info("{}", __func__);
report_timer.cancel();
- auto fut = gate.close();
+ auto fut = gates.close_all();
if (conn) {
conn->mark_down();
}
Client::ms_dispatch(crimson::net::ConnectionRef conn, MessageRef m)
{
bool dispatched = true;
- gate.dispatch_in_background(__func__, *this, [this, conn, &m, &dispatched] {
+ gates.dispatch_in_background(__func__, *this, [this, conn, &m, &dispatched] {
switch(m->get_type()) {
case MSG_MGR_MAP:
return handle_mgr_map(conn, boost::static_pointer_cast<MMgrMap>(m));
seastar::shard_id prv_shard)
{
ceph_assert_always(prv_shard == seastar::this_shard_id());
- gate.dispatch_in_background(__func__, *this, [this, c] {
+ gates.dispatch_in_background(__func__, *this, [this, c] {
if (conn == c) {
// ask for the mgrconfigure message
auto m = crimson::make_message<MMgrOpen>();
void Client::ms_handle_reset(crimson::net::ConnectionRef c, bool /* is_replace */)
{
- gate.dispatch_in_background(__func__, *this, [this, c] {
+ gates.dispatch_in_background(__func__, *this, [this, c] {
if (conn == c) {
report_timer.cancel();
return reconnect();
void Client::report()
{
_send_report();
- gate.dispatch_in_background(__func__, *this, [this] {
+ gates.dispatch_in_background(__func__, *this, [this] {
if (!conn) {
logger().warn("report: no conn available; report skipped");
return seastar::now();
{
// TODO: implement daemon_health_metrics support
// https://tracker.ceph.com/issues/63766
- gate.dispatch_in_background(__func__, *this, [this] {
+ gates.dispatch_in_background(__func__, *this, [this] {
if (!conn) {
logger().warn("cannot send report; no conn available");
return seastar::now();