crush: be more tolerant of nonsensical crush maps
authorSage Weil <sage@inktank.com>
Mon, 7 May 2012 22:35:24 +0000 (15:35 -0700)
committerSage Weil <sage@inktank.com>
Mon, 7 May 2012 22:38:51 +0000 (15:38 -0700)
commita1f4895be8bf1ba56c2306b058f51619e9b0e8f8
treef5bdd809f4bcc24daa0dfe1f7bcc8eb2d56227bb
parentc90f95ed46393e29d843686e21947d1c6fcb1164
crush: be more tolerant of nonsensical crush maps

If we get a map that doesn't make sense, error out or ignore the badness
instead of BUGging out.  This reflects the ceph.git commits
9895f0bff7dc68e9b49b572613d242315fb11b6c and
8ded26472058d5205803f244c2f33cb6cb10de79.

Reviewed-by: Alex Elder <elder@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
net/ceph/crush/mapper.c