]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix handling of initial MDS states
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 6 Nov 2019 03:39:59 +0000 (19:39 -0800)
committerVenky Shankar <vshankar@redhat.com>
Thu, 26 Mar 2020 02:45:13 +0000 (22:45 -0400)
commitbaf9b152fedba6a6568a6b26cbe9540c8295b77b
treed09f558ea027ca94d183e188a911941a570b6573
parent555ac252c35c027b48146c57cdb160ddaa638dd8
mds: fix handling of initial MDS states

Few things here:

- Make explicit the check for getting removed from the MDSMap. This was
  only done before by checking if MDS held a rank which does not check the
  case where a standby is removed from the FSMap.

- Use mds_info_t::dump to simplify various debug output.

- Add a few sanity asserts for invalid state transitions.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 26a08df2adc7495fc660113cd26c33d5debd3ee6)

 Conflicts:
src/mds/MDSDaemon.h

Nautilus still uses "const_ref" rather than "cref_t<>" in master.
src/mds/MDSDaemon.cc
src/mds/MDSDaemon.h