From: weiqiaomiao Date: Wed, 27 Jul 2016 00:58:33 +0000 (+0800) Subject: rgw: add tenant to shard_id in RGWDeleteLC::execute() X-Git-Tag: v13.0.1~932^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3e7cffb17ed6a473ecbcf8475a72dd2416e077f4;p=ceph.git rgw: add tenant to shard_id in RGWDeleteLC::execute() 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 --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index db00d2ea6276..6920cb871644 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -4847,7 +4847,7 @@ void RGWDeleteLC::execute() << " returned err=" << op_ret << dendl; return; } - string shard_id = s->bucket.name + ':' +s->bucket.bucket_id; + string shard_id = s->bucket.tenant + ':' + s->bucket.name + ':' + s->bucket.bucket_id; pair entry(shard_id, lc_uninitial); string oid; get_lc_oid(s, oid);