]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: add assertions for standby_daemons invariant 10316/head
authorPatrick Donnelly <pdonnell@redhat.com>
Sat, 16 Jul 2016 03:29:22 +0000 (23:29 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Sat, 16 Jul 2016 17:31:00 +0000 (13:31 -0400)
commit0f044e08809758f46d0d8b4b8dc586de0a751e36
treecf18f0811e30fb169c3cda860d402750b03a29c5
parent9566ae27b33dd4d266ee9223dc73738922b6eceb
mds: add assertions for standby_daemons invariant

These assertions catch state changes of an mds in standby_daemons to a state
other than MDSMap::STATE_STANDBY. Currently this invariant is (sometimes!)
checked in other locations on access of standby_daemons. This commit allows us
catch the violated invariant at the time it occurred.

Related to: http://tracker.ceph.com/issues/16592

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/FSMap.cc
src/mds/FSMap.h