]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: add tenant to shard_id in RGWDeleteLC::execute() 22551/head
authorweiqiaomiao <wei.qiaomiao@zte.com.cn>
Wed, 27 Jul 2016 00:58:33 +0000 (08:58 +0800)
committerNathan Cutler <ncutler@suse.com>
Wed, 13 Jun 2018 15:03:46 +0000 (17:03 +0200)
in RGWDeleteLC::execute(), we should add bucket.tenant to shard_id,
otherwise, the lc entry can't delete after this op

Signed-off-by: Wei Qiaomiao <wei.qiaomiao@zte.com.cn>
(cherry picked from commit 3e7cffb17ed6a473ecbcf8475a72dd2416e077f4)

Conflicts:
src/rgw/rgw_op.cc - luminous does not have 3e528f1ee837a09e1337283a2992e81a87f1bd98

src/rgw/rgw_op.cc

index d2a9c0b4e4827cfd01647f5b281d8c3a13d89158..c8be8149f19cd2aecbd80e16053483afc3d63f55 100644 (file)
@@ -5005,7 +5005,7 @@ void RGWDeleteLC::execute()
       }
     }
   op_ret = rgw_bucket_set_attrs(store, s->bucket_info, attrs, &s->bucket_info.objv_tracker);
-  string shard_id = s->bucket.name + ':' +s->bucket.bucket_id;
+  string shard_id = s->bucket.tenant + ':' + s->bucket.name + ':' + s->bucket.bucket_id;
   pair<string, int> entry(shard_id, lc_uninitial);
   string oid; 
   get_lc_oid(s, oid);