Skip to content

Commit

Permalink
mon: check the new crush map against osdmap.max_osd
Browse files Browse the repository at this point in the history
Fixes: #11680
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 22e6bd6)
  • Loading branch information
tchaikov committed Jul 10, 2015
1 parent c0b0f52 commit 2a8fe88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mon/OSDMonitor.cc
Expand Up @@ -4530,7 +4530,7 @@ bool OSDMonitor::prepare_command_impl(MMonCommand *m,
// then we would consistently trigger an election before the command
// finishes, having a flapping monitor unable to hold quorum.
CrushTester tester(crush, ess);
if (!tester.check_name_maps()) {
if (!tester.check_name_maps(osdmap.get_max_osd())) {
err = -EINVAL;
ss << ess.str();
goto reply;
Expand Down

0 comments on commit 2a8fe88

Please sign in to comment.