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
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;