]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: MDSMonitor: check all conditions are met *before* osdmon proposal
authorJoao Eduardo Luis <joao@redhat.com>
Fri, 17 Oct 2014 16:43:33 +0000 (17:43 +0100)
committerJoao Eduardo Luis <joao@redhat.com>
Fri, 17 Oct 2014 16:43:33 +0000 (17:43 +0100)
commit1d1ae413e9f0aafa314af903bcf6b815f6558082
tree47241d4eba67f98140df89c8b4b4f302ea19cf1b
parent07b7f101057a80d1356bd20040180e94cd20c211
mon: MDSMonitor: check all conditions are met *before* osdmon proposal

We should not allow ourselves to request the osdmon to propose before we
know for sure that we meet the required conditions to go through with
our own state change.  Even if we still can't guarantee that our
proposal is going to be committed, we shouldn't just change the osdmon's
state just because we can.  This way, at least, we make sure that our
checks hold up before doing anything with side-effects.

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
src/mon/MDSMonitor.cc