]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/OSDMap: remove assumption about type ids
authorSage Weil <sage@redhat.com>
Tue, 11 Jul 2017 01:21:59 +0000 (21:21 -0400)
committerSage Weil <sage@redhat.com>
Thu, 13 Jul 2017 16:14:26 +0000 (12:14 -0400)
commitaf1f47c0aba5612e1ea74a1d425c2383fd13d4f3
tree1aee7d395aae59a95e1d9b6c01d3fc2fdee74436
parent240601ab6e4569940d65d804a724083f996548dd
osd/OSDMap: remove assumption about type ids

The code is assuming type==1 is in use, but it might not be.  (It is
usually 'chassis' by default, which is rarely used; 'host' is type usually
type 2.)  Remove the type check entirely and identify leaves by a child
>= 0.

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