]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr: set hostname in DeviceState::set_metadata() 30448/head
authorKefu Chai <kchai@redhat.com>
Wed, 18 Sep 2019 03:59:18 +0000 (11:59 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 18 Sep 2019 04:49:44 +0000 (12:49 +0800)
commitff6b3997caa43d3eac0fc462f3be9ec4fa5ae6ed
tree835cca5cf339fe0c5d34e87d5f59dc6b0aa5d2e5
parent261fab6465877862f777c9e6a7225863472cd53a
mgr: set hostname in DeviceState::set_metadata()

before this change, we don't update daemon's host if the daemon already
exists in the `daemon_state` registry when handling MMgrOpen even if the
hostname is updated and different from the existing one. and we set
daemon's metadata and update daemon's hostname when handling MMgrOpen or
MServiceMap.

after this change, daemon's hostname is always set whenever
`DaemonState::set_metadata()` is called.

Fixes: https://tracker.ceph.com/issues/40871
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mgr/DaemonServer.cc
src/mgr/DaemonState.h