]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: check the new crush map against osdmap.max_osd
authorKefu Chai <kchai@redhat.com>
Tue, 26 May 2015 08:58:23 +0000 (16:58 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 31 May 2015 17:24:54 +0000 (01:24 +0800)
Fixes: #11680
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/OSDMonitor.cc

index 91e249ce679d94f3e6e7ba878e24293987dd618d..c60b273f233deae779b3f4d55b35f18db83905d5 100644 (file)
@@ -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;