mirror of
https://github.com/ceph/ceph
synced 2025-01-19 17:41:39 +00:00
rgw: fix index cancel op miss update header
Signed-off-by: Tianshan Qu <tianshan@xsky.com>
This commit is contained in:
parent
a33659d604
commit
690482d611
@ -854,10 +854,15 @@ int rgw_bucket_complete_op(cls_method_context_t hctx, bufferlist *in, bufferlist
|
||||
if (op.tag.size()) {
|
||||
bufferlist new_key_bl;
|
||||
encode(entry, new_key_bl);
|
||||
return cls_cxx_map_set_val(hctx, idx, &new_key_bl);
|
||||
} else {
|
||||
return 0;
|
||||
rc = cls_cxx_map_set_val(hctx, idx, &new_key_bl);
|
||||
if (rc < 0)
|
||||
return rc;
|
||||
}
|
||||
|
||||
if (op.log_op && !header.syncstopped) {
|
||||
return write_bucket_header(hctx, &header);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (entry.exists) {
|
||||
|
Loading…
Reference in New Issue
Block a user