mirror of
https://github.com/ceph/ceph
synced 2025-01-19 01:21:49 +00:00
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:
parent
1e5c8aef7b
commit
ff5bd5bd52
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user