]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdmaptool: fix silly num_dom bug
authorSage Weil <sage@newdream.net>
Wed, 8 Oct 2008 16:28:58 +0000 (09:28 -0700)
committerSage Weil <sage@newdream.net>
Wed, 8 Oct 2008 16:28:58 +0000 (09:28 -0700)
src/osd/OSDMap.cc

index a08cd83ffaea550f3dce70599a5157cb8dcd9038..c267099c89a4bcec3bfc3ad080f7487dfede1c7b 100644 (file)
@@ -67,7 +67,7 @@ void OSDMap::build_simple_crush_map(CrushWrapper& crush, int num_osd,
   int minrep = g_conf.osd_min_rep;
   int ndom = num_dom;
   if (!ndom)
-    MAX(g_conf.osd_max_rep, g_conf.osd_max_raid_width);
+    ndom = MAX(g_conf.osd_max_rep, g_conf.osd_max_raid_width);
   if (num_osd >= ndom*3 &&
       num_osd > 8) {
     int ritems[ndom];