]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: MDSMonitor: wait for osdmon to be writable when requesting proposal 4258/head
authorJoao Eduardo Luis <joao@redhat.com>
Fri, 17 Oct 2014 18:08:20 +0000 (19:08 +0100)
committerJoao Eduardo Luis <jluis@suse.com>
Thu, 2 Apr 2015 10:34:14 +0000 (11:34 +0100)
commit5f4e62f382767ee69e5b0c701b1a01d9e4132237
tree2bc17bfca120f09d5b8e7a5f5d047217682aad0e
parent257bd17db6470ca050403b1c8ff8daa94a4b80b5
mon: MDSMonitor: wait for osdmon to be writable when requesting proposal

Otherwise we may end up requesting the osdmon to propose while it is
mid-proposal.  We can't simply return EAGAIN to the user either because
then we would have to expect the user to be able to successfully race
with the whole cluster in finding a window in which 'mds fs new' command
would succeed -- which is not a realistic expectation.  Having the
command to osdmon()->wait_for_writable() guarantees that the command
will be added to a queue and that we will, eventually, tend to it.

Fixes: #9794
Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
(cherry picked from commit 2ae1cba595d9c56a0a4c534b34fe25250e7eb2d5)
src/mon/MDSMonitor.cc
src/mon/MDSMonitor.h