]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: only test crush ruleset for the newly created pool
authorSage Weil <sage@redhat.com>
Fri, 18 Sep 2015 13:41:25 +0000 (09:41 -0400)
committerLoic Dachary <ldachary@redhat.com>
Wed, 7 Oct 2015 16:09:21 +0000 (18:09 +0200)
Otherwise, we test *all* crush rules.. which might be a lot, and
which is a big waste of time and effort.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 524b0bdcc45c2f4b95f2239c988e93250f337f3d)

Conflicts:
src/mon/OSDMonitor.cc : trivial resolution

src/mon/OSDMonitor.cc

index b7be921598ad3436ec984989e36961ac5cb3fd6a..d8470e7435e1343f37033f4227f5c64119ed5bbf 100644 (file)
@@ -4040,7 +4040,8 @@ int OSDMonitor::prepare_new_pool(string& name, uint64_t auid,
   CrushTester tester(newcrush, ss);
   r = tester.test_with_crushtool(g_conf->crushtool.c_str(),
                                 osdmap.get_max_osd(),
-                                g_conf->mon_lease);
+                                g_conf->mon_lease,
+                                crush_ruleset);
   if (r)
     return r;
   unsigned size, min_size;