]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
CrushWrapper: pick a ruleset same as rule_id 4095/head
authorXiaoxi Chen <xiaoxi.chen@intel.com>
Wed, 20 Aug 2014 07:35:44 +0000 (15:35 +0800)
committerLoic Dachary <ldachary@redhat.com>
Thu, 19 Mar 2015 09:36:30 +0000 (10:36 +0100)
commit970a79753dc52d82d2abf29ffe6f88adac678eb0
tree5b138a5155b4e623eee587a69d93f07f47ccad77
parent1f58a0adc3b23785fac00083d721b62f6a4c44a1
CrushWrapper: pick a ruleset same as rule_id

Originally in the add_simple_ruleset funtion, the ruleset_id
is not reused but rule_id is reused. So after some add/remove
against rules, the newly created rule likely to have
ruleset!=rule_id.

We dont want this happen because we are trying to hold the constraint
that ruleset == rule_id.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
(cherry picked from commit 78e84f34da83abf5a62ae97bb84ab70774b164a6)
src/test/mon/osd-crush.sh