]> git.apps.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)
committerJohn Spray <john.spray@redhat.com>
Wed, 1 Nov 2017 23:03:22 +0000 (23:03 +0000)
commitdf426b5c24e12b1156bccdd8948cbed5977c348a
treeea68dd297ae4a917472cc7e6fa43daa52c5b6979
parent89cac2d5176300838c23a28814257d0f395e39c9
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>
(cherry picked from commit 69454e0570274ff7f252e7f081965dcc9bb04459)
src/crush/CrushWrapper.cc
src/crush/CrushWrapper.h