From: Sage Weil Date: Fri, 18 Sep 2015 13:41:25 +0000 (-0400) Subject: mon/OSDMonitor: only test crush ruleset for the newly created pool X-Git-Tag: v9.1.0~114^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=524b0bdcc45c2f4b95f2239c988e93250f337f3d;p=ceph.git mon/OSDMonitor: only test crush ruleset for the newly created pool 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 --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 3b44b2d4b0c6..a7d18f8a4f3c 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -4493,7 +4493,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) { dout(10) << " tester.test_with_crushtool returns " << r << dendl; return r;