From: Sage Weil Date: Wed, 29 Aug 2018 13:21:51 +0000 (-0500) Subject: mon/MonClient: set hostname in MMonSubscribe message X-Git-Tag: v14.0.1~427^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bd7e27d59bf5f0c6a58f7fe8b8ae869942d7ec35;p=ceph.git mon/MonClient: set hostname in MMonSubscribe message Signed-off-by: Sage Weil --- diff --git a/src/mon/MonClient.cc b/src/mon/MonClient.cc index 324daab7019d..766892f35949 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(); }