]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush: add is_v[23]_rule(ruleid) methods
authorSage Weil <sage@redhat.com>
Fri, 15 Aug 2014 15:52:37 +0000 (08:52 -0700)
committerSage Weil <sage@redhat.com>
Fri, 15 Aug 2014 15:55:27 +0000 (08:55 -0700)
commit1d95486780a54c85a5c88936a4da4bdc3576a7b8
tree44d66c6e12a850060645e4cea4ae7d1859613ea1
parent6a555434ee3edaf742ee7e5910bcba8dd0de46dd
crush: add is_v[23]_rule(ruleid) methods

Add methods to check if a *specific* rule uses v2 or v3 features.  Refactor
the existing checks to use these.

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