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.85~122^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F2168%2Fhead;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 --- diff --git a/src/cls/rgw/cls_rgw.cc b/src/cls/rgw/cls_rgw.cc index 005558a62f70..eb4a4232d189 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;