]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: set hostname in DeviceState::set_metadata() 30624/head
authorKefu Chai <kchai@redhat.com>
Wed, 18 Sep 2019 03:59:18 +0000 (11:59 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 27 Sep 2019 17:40:53 +0000 (01:40 +0800)
commit60757c5f0919402ee87b218ff5f1f84c29052913
treea95792488c0c060b5fabab34c367dd1c06cfb522
parent534c2f14693439413791049826ca23d1706c7a8d
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>
(cherry picked from commit ff6b3997caa43d3eac0fc462f3be9ec4fa5ae6ed)
src/mgr/DaemonServer.cc
src/mgr/DaemonState.h