]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: note down the source from where the message is sent
authorKefu Chai <kchai@redhat.com>
Sun, 3 Feb 2019 11:21:22 +0000 (19:21 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 3 Feb 2019 12:08:49 +0000 (20:08 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/heartbeat.cc

index 8f81cc3e75108eb6a184b2e291889be664a1d5a7..9fee3b91d3f35de08502656ab9a2189d314bfc1e 100644 (file)
@@ -195,7 +195,8 @@ seastar::future<> Heartbeat::remove_peer(osd_id_t peer)
 seastar::future<> Heartbeat::ms_dispatch(ceph::net::ConnectionRef conn,
                                          MessageRef m)
 {
-  logger().info("heartbeat: ms_dispatch {}", *m);
+  logger().info("heartbeat: ms_dispatch {} from {}",
+                *m, m->get_source());
   switch (m->get_type()) {
   case CEPH_MSG_PING:
     return handle_osd_ping(conn, boost::static_pointer_cast<MOSDPing>(m));