]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush/CrushWrapper: refactor get_rule_weight_osd_map to work with roots too
authorSage Weil <sage@redhat.com>
Sun, 23 Jul 2017 03:50:27 +0000 (23:50 -0400)
committerSage Weil <sage@redhat.com>
Wed, 6 Sep 2017 20:45:46 +0000 (16:45 -0400)
commit69454e0570274ff7f252e7f081965dcc9bb04459
treee695c3e5a9b16a2b8899eb427a90a051cd4d2b29
parent028a66d43244c15a77e71f3d3e4f41773837ab02
crush/CrushWrapper: refactor get_rule_weight_osd_map to work with roots too

Allow us to specify a root node in the hierarchy instead of a rule.
This way we can use it in conjunction with find_takes().

Signed-off-by: Sage Weil <sage@redhat.com>
src/crush/CrushWrapper.cc
src/crush/CrushWrapper.h