]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush: return -1 on error from get_type_id
authorSage Weil <sage@inktank.com>
Fri, 3 May 2013 22:26:22 +0000 (15:26 -0700)
committerSage Weil <sage@inktank.com>
Fri, 3 May 2013 22:53:40 +0000 (15:53 -0700)
commit8894c5041d2dbd7408b428e5c2b3434aae2d697f
tree90127f22f4ddf8d3e58f02a9b5821c8a461f422d
parent378eb32801373c25bd85f6262bee471c3552fb23
crush: return -1 on error from get_type_id

So we can distinguish between a bad type name and type 0.

Fix both callers, too.

Signed-off-by: Sage Weil <sage@inktank.com>
src/crush/CrushWrapper.cc
src/crush/CrushWrapper.h
src/mon/OSDMonitor.cc