]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: clean index and remove bucket instance info when setting resharding 31103/head
authorzhangshaowen <zhangshaowen@cmss.chinamobile.com>
Thu, 24 Oct 2019 00:47:09 +0000 (08:47 +0800)
committerzhangshaowen <zhangshaowen@cmss.chinamobile.com>
Thu, 24 Oct 2019 00:47:09 +0000 (08:47 +0800)
status fails.

Signed-off-by: zhangshaowen <zhangshaowen@cmss.chinamobile.com>
src/rgw/rgw_reshard.cc

index 4c05001199d7138d04d648d5f52eed7acb1f4edc..42df6adf7bc0f063ddaa254f8e1ddf8c32f891ec 100644 (file)
@@ -681,8 +681,7 @@ int RGWBucketReshard::execute(int num_shards, int max_op_entries,
   ret = set_resharding_status(new_bucket_info.bucket.bucket_id,
                              num_shards, CLS_RGW_RESHARD_IN_PROGRESS);
   if (ret < 0) {
-    reshard_lock.unlock();
-    return ret;
+    goto error_out;
   }
 
   ret = do_reshard(num_shards,