From bd7e27d59bf5f0c6a58f7fe8b8ae869942d7ec35 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 29 Aug 2018 08:21:51 -0500 Subject: [PATCH] mon/MonClient: set hostname in MMonSubscribe message Signed-off-by: Sage Weil --- src/mon/MonClient.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mon/MonClient.cc b/src/mon/MonClient.cc index 324daab7019..766892f3594 100644 --- a/src/mon/MonClient.cc +++ b/src/mon/MonClient.cc @@ -32,6 +32,7 @@ #include "messages/MMonSubscribe.h" #include "messages/MMonSubscribeAck.h" #include "common/errno.h" +#include "common/hostname.h" #include "common/LogClient.h" #include "MonClient.h" @@ -847,6 +848,7 @@ void MonClient::_renew_subs() else { MMonSubscribe *m = new MMonSubscribe; m->what = sub.get_subs(); + m->hostname = ceph_get_short_hostname(); _send_mon_message(m); sub.renewed(); } -- 2.39.5