]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush: fix has_v4_buckets() 4328/head
authorSage Weil <sage@redhat.com>
Fri, 10 Apr 2015 15:43:45 +0000 (08:43 -0700)
committerLoic Dachary <ldachary@redhat.com>
Fri, 10 Apr 2015 15:46:59 +0000 (17:46 +0200)
commit5ca771a7d1df8e78ee503a7063068cf744d5efcc
treef00e6e3041812d6438c77db63792bbd2a19f96c6
parent33e79ab7aa0b5428e8fb82a90eea17d31d363a88
crush: fix has_v4_buckets()

alg, not type!

This bug made us incorrectly think we were using v4 features when user type
5 was being used.  That's currently 'rack' with recent crush maps, but
was other types for clusters that were created with older versions.  This
is clearly problematic as it will lock out non-hammer clients incorrectly,
breaking deployments on upgrade.

Fixes: #11364
Backport: hammer
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 38b35ab9d17eb84ac178c4cd3ebcf2ec0f66d8b6)
src/crush/CrushWrapper.cc