]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix the missing return value 10122/head
authorYan Jun <yan.jun8@zte.com.cn>
Mon, 4 Jul 2016 15:56:11 +0000 (23:56 +0800)
committerYan Jun <yan.jun8@zte.com.cn>
Mon, 4 Jul 2016 15:56:11 +0000 (23:56 +0800)
We should return the negative value while put_linked_bucket_info() failed.

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

index 9e072479cd6bdad51881ce2fbeab8a51b7e0dbf8..626ae1458eebe25284b376facfc5a058df6cd0fe 100644 (file)
@@ -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;