]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: Monitor: suicide on start if mon has been removed from monmap
authorJoao Eduardo Luis <joao.luis@inktank.com>
Thu, 10 Apr 2014 14:14:19 +0000 (15:14 +0100)
committerSage Weil <sage@redhat.com>
Fri, 1 Aug 2014 22:50:57 +0000 (15:50 -0700)
commit935e75a850b3363536cc09b68f45f2a497da4bb4
tree927c3ecf7df6fef1db8bc6c0101f95421a8295f0
parent4aca6c0d7540c2bf5fb54df2d70c4649a9b94100
mon: Monitor: suicide on start if mon has been removed from monmap

If the monitor has been marked as having been part of an existing quorum
and is no longer in the monmap, then it is safe to assume the monitor
was removed from the monmap.  In that event, do not allow the monitor
to start, as it will try to find its way into the quorum again (and
someone clearly stated they don't really want them there), unless
'mon force quorum join' is specified.

Fixes: 6789
Backport: dumpling, emperor

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
(cherry picked from commit 86b85947a2148c2e73886c1a7edd09093966ada0)

Conflicts:
src/common/config_opts.h
src/common/config_opts.h
src/mon/Monitor.cc