Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 2ae1cba)
- Loading branch information
Joao Eduardo Luis
authored and
Joao Eduardo Luis
committed
Apr 2, 2015
1 parent
257bd17
commit 5f4e62f
Showing
2 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters