]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix init_bucket_for_sync retcode 13684/head
authorlu.shasha <lu.shasha@eisoo.com>
Tue, 28 Feb 2017 06:28:38 +0000 (14:28 +0800)
committerlu.shasha <lu.shasha@eisoo.com>
Fri, 17 Mar 2017 00:56:17 +0000 (08:56 +0800)
init_bucket_for_sync error retcode should be negative

Signed-off-by: Shasha Lu <lu.shasha@eisoo.com>
src/rgw/rgw_admin.cc

index 59103a5d68f9a6eaecadedb369e49bf6e393b289..e6b1eb59e823023a25564dee30db1426270bdfbe 100644 (file)
@@ -1717,7 +1717,7 @@ static int init_bucket_for_sync(const string& tenant, const string& bucket_name,
   int ret = init_bucket(tenant, bucket_name, bucket_id, bucket_info, bucket);
   if (ret < 0) {
     cerr << "ERROR: could not init bucket: " << cpp_strerror(-ret) << std::endl;
-    return -ret;
+    return ret;
   }
 
   return 0;