]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix the missing return value 10035/head
authorYan Jun <yan.jun8@zte.com.cn>
Thu, 30 Jun 2016 02:49:41 +0000 (10:49 +0800)
committerYan Jun <yan.jun8@zte.com.cn>
Thu, 30 Jun 2016 02:49:41 +0000 (10:49 +0800)
commitc41ff0eb8c1135cb555a54af32bbb72134f2fdff
treeba8b7a6e0747c9bc8acdcc5e95ac617746139f9e
parent9d92d0d30b15aec288f0492b82dda771572690c6
rgw: fix the missing return value

If `get_bucket_index_object` returns an error code (-ENOTSUP)
with ivalid `hash_type`, we should return this negative error code
that resulting in `BucketShard::init` failed as expected,
oherwise it will go wrong.

Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
src/rgw/rgw_rados.cc