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>
  • Loading branch information
tchaikov committed May 31, 2015
1 parent d0658dd commit 22e6bd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mon/OSDMonitor.cc
Expand Up @@ -4841,7 +4841,7 @@ bool OSDMonitor::prepare_command_impl(MMonCommand *m,
dout(10) << " testing map" << dendl;
stringstream ess;
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 22e6bd6

Please sign in to comment.