mirror of
https://github.com/ceph/ceph
synced 2025-03-29 23:09:47 +00:00
Merge pull request #26449 from tchaikov/wip-monc-cleanup
mon/MonClient: drop my_addr Reviewed-by: Sage Weil <sage@redhat.com> Reviewed-by: Neha Ojha <nojha@redhat.com>
This commit is contained in:
commit
e062432902
@ -216,7 +216,8 @@ void MgrStandby::send_beacon()
|
||||
dout(10) << "sending beacon as gid " << monc.get_global_id() << dendl;
|
||||
|
||||
map<string,string> metadata;
|
||||
metadata["addr"] = monc.get_my_addr().ip_only_to_str();
|
||||
#warning fixme, report addrs instead
|
||||
metadata["addr"] = client_messenger->get_myaddr_legacy().ip_only_to_str();
|
||||
collect_sys_info(&metadata, g_ceph_context);
|
||||
|
||||
MMgrBeacon *m = new MMgrBeacon(monc.get_fsid(),
|
||||
|
@ -271,10 +271,6 @@ int MonClient::ping_monitor(const string &mon_id, string *result_reply)
|
||||
|
||||
bool MonClient::ms_dispatch(Message *m)
|
||||
{
|
||||
#warning fixme, my_addr should be entity_addrvec_t my_addrs
|
||||
if (my_addr == entity_addr_t())
|
||||
my_addr = messenger->get_myaddr_legacy();
|
||||
|
||||
// we only care about these message types
|
||||
switch (m->get_type()) {
|
||||
case CEPH_MSG_MON_MAP:
|
||||
|
@ -246,8 +246,6 @@ private:
|
||||
|
||||
EntityName entity_name;
|
||||
|
||||
entity_addr_t my_addr;
|
||||
|
||||
mutable Mutex monc_lock;
|
||||
SafeTimer timer;
|
||||
Finisher finisher;
|
||||
@ -467,10 +465,6 @@ public:
|
||||
_reopen_session();
|
||||
}
|
||||
|
||||
entity_addr_t get_my_addr() const {
|
||||
return my_addr;
|
||||
}
|
||||
|
||||
const uuid_d& get_fsid() const {
|
||||
return monmap.fsid;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user