From: Yehuda Sadeh Date: Wed, 30 Jul 2014 18:53:16 +0000 (-0700) Subject: cls_rgw: fix object name of objects removed on object creation X-Git-Tag: v0.80.6~103^2~2^2~6 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=67d73451c893b58634f06ed141792da1bf0fa77c;p=ceph.git cls_rgw: fix object name of objects removed on object creation Fixes: #8972 Backport: firefly, dumpling Reported-by: Patrycja Szabłowska Signed-off-by: Yehuda Sadeh (cherry picked from commit 0f8929a68aed9bc3e50cf15765143a9c55826cd2) --- diff --git a/src/cls/rgw/cls_rgw.cc b/src/cls/rgw/cls_rgw.cc index cf301f7294d9a..7a15a90f9ebc5 100644 --- a/src/cls/rgw/cls_rgw.cc +++ b/src/cls/rgw/cls_rgw.cc @@ -670,7 +670,7 @@ int rgw_bucket_complete_op(cls_method_context_t hctx, bufferlist *in, bufferlist unaccount_entry(header, remove_entry); if (op.log_op) { - rc = log_index_operation(hctx, op.name, CLS_RGW_OP_DEL, op.tag, remove_entry.meta.mtime, + rc = log_index_operation(hctx, remove_oid_name, CLS_RGW_OP_DEL, op.tag, remove_entry.meta.mtime, remove_entry.ver, CLS_RGW_STATE_COMPLETE, header.ver, header.max_marker); if (rc < 0) continue;