From: John Spray Date: Tue, 20 May 2014 15:50:18 +0000 (+0100) Subject: mon: Fix check of ruleset id on pool update X-Git-Tag: v0.82~69^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fb504baed98d57dca8ec141bcc3fd021f99d82b0;p=ceph.git mon: Fix check of ruleset id on pool update This code was using CrushWrapper::rule_exists, which checks for a *rule* existing, whereas the value being set is a *ruleset*. Signed-off-by: John Spray --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 778ec405e156..d5ea95447b01 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -3423,7 +3423,7 @@ int OSDMonitor::prepare_command_pool_set(map &cmdmap, ss << "error parsing integer value '" << val << "': " << interr; return -EINVAL; } - if (!osdmap.crush->rule_exists(n)) { + if (!osdmap.crush->ruleset_exists(n)) { ss << "crush ruleset " << n << " does not exist"; return -ENOENT; }