]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush/CrushWrapper: fill in weight-sets when we build shadow trees
authorSage Weil <sage@redhat.com>
Mon, 7 Aug 2017 21:56:06 +0000 (17:56 -0400)
committerSage Weil <sage@redhat.com>
Sun, 13 Aug 2017 19:00:21 +0000 (15:00 -0400)
commit5cccb67998481e9b7be0bd51bbfa910dd1a22b39
treec622e4efd612939306a948097dd5f74f2625fde3
parent0389079bd2b89f8a234409f880fe971ee6939182
crush/CrushWrapper: fill in weight-sets when we build shadow trees

When we build the shadow buckets for the class hierarchies, we need
to fill in the weight-sets for each shadow bucket too.

Skip the ids vector for now since it's not yet used by anything.

Fixes: http://tracker.ceph.com/issues/20939
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 0ed55e6150e3d82b2955cf3e9fa0f01b36a6474a)
src/crush/CrushWrapper.cc
src/crush/CrushWrapper.h
src/test/crush/CrushWrapper.cc