]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: establish session with mgr only after added to FSMap
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 6 Nov 2019 03:51:17 +0000 (19:51 -0800)
committerVenky Shankar <vshankar@redhat.com>
Thu, 26 Mar 2020 02:45:13 +0000 (22:45 -0400)
commit7f7d37375daeb917171a2c21229474ffee2cba7f
tree9e5550ae8ef4e06947b2ba4e367813e684ce94ed
parentacd98421eea65032670309b8e96528f55a0b6839
mds: establish session with mgr only after added to FSMap

Note that we now sub to the mgrmap after init because the MgrClient
connection to the mgr is driven by receipt of the MgrMap.

This is important so that the MDS does not have metadata with the mgr
when the mons are ignoring the MDS otherwise due to CompatSet
incompatibilities.

Fixes: https://tracker.ceph.com/issues/41538
Fixes: https://tracker.ceph.com/issues/42635
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit e765f2d533440cfc4189f36fcaba24617a302e84)

 Conflicts:
src/mds/MDSDaemon.cc

Nautilus uses Lock/Unlock rather than lock/unlock in master.
src/mds/MDSDaemon.cc
src/mgr/MgrClient.cc
src/mgr/MgrClient.h