]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: add mgr daemon to DaemonStateIndex with metadata (hostname) 20875/head
authorJan Fajerski <jfajerski@suse.com>
Tue, 13 Mar 2018 15:21:27 +0000 (16:21 +0100)
committerJan Fajerski <jfajerski@suse.com>
Tue, 10 Apr 2018 09:49:22 +0000 (11:49 +0200)
commit5c9db7200eb0274e1d87c4ce0ab5ca32e090f1ea
tree7bc6dda0e425df39a26e9a6af685f853aeb05b01
parent3eaf1516ebbfc03bb8e5469fdf09249374bd9bb6
mgr: add mgr daemon to DaemonStateIndex with metadata (hostname)

This commit changes when (and how) the mgr daemons are added to the
DaemonStateIndex. A change in the mgr map now doesn't immediately
trigger the addition of a mgr daemon, but triggers a MetadataUpdate
operation so that the mgr daemon is added with metadata queried from the
mon (most notably the hostname).
Fixes: http://tracker.ceph.com/issues/23286
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
src/mgr/DaemonServer.cc
src/mgr/Mgr.cc