]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cls_rgw: fix object name of objects removed on object creation
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 30 Jul 2014 18:53:16 +0000 (11:53 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Sat, 2 Aug 2014 20:09:54 +0000 (13:09 -0700)
Fixes: #8972
Backport: firefly, dumpling

Reported-by: Patrycja Szabłowska <szablowska.patrycja@gmail.com>
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 0f8929a68aed9bc3e50cf15765143a9c55826cd2)

src/cls/rgw/cls_rgw.cc

index cf301f7294d9a8f599c082e0c5c2be77f6ce3ff4..7a15a90f9ebc5ea10f1c0518f12747a9b63107fb 100644 (file)
@@ -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;