From: Sage Weil Date: Wed, 29 Aug 2018 13:20:59 +0000 (-0500) Subject: mon: pay attention to MMonSubscribe's hostname X-Git-Tag: v13.2.3~82^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9ec40234af6bf9e2108e324403203a355b49eb27;p=ceph.git mon: pay attention to MMonSubscribe's hostname We weren't populating remote_host anywhere! Signed-off-by: Sage Weil (cherry picked from commit 0acb5cb4544b2a6dc93e9afe0228167e65d49d5a) --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 8cc63773d9bd..a1d0217935ae 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -4789,6 +4789,10 @@ void Monitor::handle_subscribe(MonOpRequestRef op) MonSession *s = op->get_session(); assert(s); + if (m->hostname.size()) { + s->remote_host = m->hostname; + } + for (map::iterator p = m->what.begin(); p != m->what.end(); ++p) {