crush: decode and initialize chooseleaf_vary_r
authorIlya Dryomov <ilya.dryomov@inktank.com>
Fri, 9 May 2014 14:27:34 +0000 (18:27 +0400)
committerIlya Dryomov <ilya.dryomov@inktank.com>
Fri, 16 May 2014 17:29:55 +0000 (21:29 +0400)
commitf140662f35a7332b5c3188ee667856323783ed5a
tree483dab63de78cfb269332e5b5792811ad5a890b5
parent178eda29ca721842f2146378e73d43e0044c4166
crush: decode and initialize chooseleaf_vary_r

Commit e2b149cc4ba0 ("crush: add chooseleaf_vary_r tunable") added the
crush_map::chooseleaf_vary_r field but missed the decode part.  This
lead to misdirected requests caused by incorrect raw crush mapping
sets.

Fixes: http://tracker.ceph.com/issues/8226

Reported-and-Tested-by: Dmitry Smirnov <onlyjob@member.fsf.org>
Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
net/ceph/osdmap.c