]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush/CrushWrapper: remap across intervening bucket types 14902/head
authorSage Weil <sage@redhat.com>
Tue, 2 May 2017 00:57:45 +0000 (19:57 -0500)
committerSage Weil <sage@redhat.com>
Tue, 2 May 2017 00:57:45 +0000 (19:57 -0500)
commit10ff811643d41940846b94b75b1e635267a14a7a
tree61570beb5d1bee038c01df3e713ac0bfe5327d5e
parent79e4d248a7b4959a1312a2ca586f029a7cdfbfc9
crush/CrushWrapper: remap across intervening bucket types

The previous code could only swap overfull devices with underfull devices
if they were in the same bucket.  With this change, we can map across
buckets.  For example, if host A has more PGs than host B, then we'll
remap some PGs on devices in host A with devices in host B.

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