]> git-server-git.apps.pok.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>
Wed, 6 Aug 2014 17:26:09 +0000 (10:26 -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 6cda4cba5c39fad3c17590bee840b6b5ce367e8e..de597c2a73dc320b8b4589d7089f61086cd1f25b 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;