]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: should unlock when reshard_log->update() reture non-zero in RGWBucketReshard... 16502/head
authorweiqiaomiao <wei.qiaomiao@zte.com.cn>
Sat, 22 Jul 2017 05:43:10 +0000 (13:43 +0800)
committerWei <wei.qiaomiao@zte.com.cn>
Mon, 24 Jul 2017 04:30:01 +0000 (12:30 +0800)
Signed-off-by: Wei Qiaomiao <wei.qiaomiao@zte.com.cn>
src/rgw/rgw_reshard.cc

index 1612385a0c042c476734d218a0f9fdae56fe7f45..0389ca33dce293c4fba356db6b3568d5416b1e76 100644 (file)
@@ -534,6 +534,7 @@ int RGWBucketReshard::execute(int num_shards, int max_op_entries,
   if (reshard_log) {
     ret = reshard_log->update(bucket_info, new_bucket_info);
     if (ret < 0) {
+      unlock_bucket();
       return ret;
     }
   }