]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush/CrushWrapper: make a compat/default choose_args
authorSage Weil <sage@redhat.com>
Fri, 14 Jul 2017 17:12:02 +0000 (13:12 -0400)
committerSage Weil <sage@redhat.com>
Fri, 21 Jul 2017 17:50:50 +0000 (13:50 -0400)
commit87f64a951d3d98f92c19593cd926270cf54f9494
tree27f6759f43d1da39fed45df58c52449282fddc60
parentf7db29026d2929e831431406fa21fa295c729960
crush/CrushWrapper: make a compat/default choose_args

We can make a backward-compatible crush map for legacy clients only if we
have a single global choose_args for the whole map.  Add a special
slot to store that of -1.  (Normally the index is the pool id, so -1 is
unused by ceph.)

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