]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Refactor ErasureCodeLrc::create_ruleset 2398/head
authorXiaoxi Chen <xiaoxi.chen@intel.com>
Thu, 4 Sep 2014 15:47:51 +0000 (23:47 +0800)
committerXiaoxi Chen <xiaoxi.chen@intel.com>
Fri, 5 Sep 2014 01:21:51 +0000 (09:21 +0800)
commit14d87bd534730085d488b999d36bd61f6ae61ae5
tree745fed0d94fcf9a64223a07e039fe4dff423ec3c
parentb32712f1fc98e7abe3dc5fa778cbb779702f940d
Refactor ErasureCodeLrc::create_ruleset

Refactor ErasureCodeLrc::create_ruleset
1.Use CrushWrapper instead of crush C-api.
2.Make ruleset_id == rule_id, consist as the behavior in
  CrushWrapper::add_simple_ruleset().

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
src/erasure-code/lrc/ErasureCodeLrc.cc