diff options
author | Sage Weil <sage@redhat.com> | 2017-06-14 21:55:25 +0200 |
---|---|---|
committer | Sage Weil <sage@redhat.com> | 2017-06-20 01:09:06 +0200 |
commit | a52ad4936208fc512eefca140d9f554846d25250 (patch) | |
tree | 84129a25e193fdbfb6c0331961fff457c038b948 /src/osd | |
parent | osd/OSDMap: some cosmetic cleanup (ruleset -> rule) (diff) | |
download | ceph-a52ad4936208fc512eefca140d9f554846d25250.tar.xz ceph-a52ad4936208fc512eefca140d9f554846d25250.zip |
crush/CrushWrapper: add_simple_ruleset[_at] -> add_simple_rule[_at]
Signed-off-by: Sage Weil <sage@redhat.com>
Diffstat (limited to 'src/osd')
-rw-r--r-- | src/osd/OSDMap.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/osd/OSDMap.cc b/src/osd/OSDMap.cc index 19860404091..2d88f91d4bc 100644 --- a/src/osd/OSDMap.cc +++ b/src/osd/OSDMap.cc @@ -3466,9 +3466,10 @@ int OSDMap::build_simple_crush_rules( crush.get_type_name(cct->_conf->osd_crush_chooseleaf_type); int r; - r = crush.add_simple_ruleset_at("replicated_ruleset", root, failure_domain, - "firstn", pg_pool_t::TYPE_REPLICATED, - crush_rule, ss); + r = crush.add_simple_rule_at( + "replicated_ruleset", root, failure_domain, + "firstn", pg_pool_t::TYPE_REPLICATED, + crush_rule, ss); if (r < 0) return r; // do not add an erasure rule by default or else we will implicitly |