rgw: should unlock when reshard_log->update() reture non-zero in RGWBucketReshard::execute()

Signed-off-by: Wei Qiaomiao <wei.qiaomiao@zte.com.cn>
This commit is contained in:
weiqiaomiao 2017-07-22 13:43:10 +08:00 committed by Wei
parent 1e5c8aef7b
commit ff5bd5bd52

View 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;
}
}