From: Yan Jun Date: Mon, 4 Jul 2016 15:56:11 +0000 (+0800) Subject: rgw: fix the missing return value X-Git-Tag: ses5-milestone5~185^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f43f37ea79279b4eadc64bbd4177a275d28cf421;p=ceph.git rgw: fix the missing return value We should return the negative value while put_linked_bucket_info() failed. Signed-off-by: Yan Jun --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 9e072479cd6b..626ae1458eeb 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -10597,6 +10597,7 @@ int RGWRados::convert_old_bucket_info(RGWObjectCtx& obj_ctx, ret = put_linked_bucket_info(info, false, ep_mtime, &ot.write_version, &attrs, true); if (ret < 0) { ldout(cct, 0) << "ERROR: failed to put_linked_bucket_info(): " << ret << dendl; + return ret; } return 0;