]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
CrushWrapper: pick a ruleset same as rule_id 2288/head
authorXiaoxi Chen <xiaoxi.chen@intel.com>
Wed, 20 Aug 2014 07:35:44 +0000 (15:35 +0800)
committerXiaoxi Chen <xiaoxi.chen@intel.com>
Fri, 22 Aug 2014 13:22:56 +0000 (21:22 +0800)
commit78e84f34da83abf5a62ae97bb84ab70774b164a6
treeb4c93140c821e2cb6978f4d2a56d2529e8168638
parentab886c4a0be6f15e4b60daa82ce692337be4845b
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>
src/crush/CrushWrapper.cc
src/crush/CrushWrapper.h
src/crush/builder.c
src/crush/crush.h
src/test/erasure-code/TestErasureCodeIsa.cc
src/test/erasure-code/TestErasureCodeJerasure.cc
src/test/mon/osd-crush.sh