summaryrefslogtreecommitdiffstats
path: root/src/crimson/net/io_handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crimson/net/io_handler.h')
-rw-r--r--src/crimson/net/io_handler.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/crimson/net/io_handler.h b/src/crimson/net/io_handler.h
index 5986fcb16ac..41c76ab925b 100644
--- a/src/crimson/net/io_handler.h
+++ b/src/crimson/net/io_handler.h
@@ -309,7 +309,7 @@ public:
in_exit_dispatching = std::nullopt;
}
- bool try_enter_out_dispatching() {
+ bool try_enter_out_dispatching(SocketConnection &conn) {
assert(seastar::this_shard_id() == sid);
if (out_dispatching) {
// already dispatching out
@@ -327,6 +327,9 @@ public:
// do not dispatch out
return false;
default:
+ crimson::get_logger(ceph_subsys_ms).error(
+ "{} try_enter_out_dispatching() got wrong io_state {}",
+ conn, io_state);
ceph_abort("impossible");
}
}
@@ -574,6 +577,8 @@ struct fmt::formatter<crimson::net::IOHandler::io_state_t>
case switched:
name = "switched";
break;
+ default:
+ name = "undefined";
}
return formatter<string_view>::format(name, ctx);
}