From f4b679d552c660bcc5c4df0b791517a79b33956e Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Thu, 30 May 2013 09:34:21 -0700 Subject: rgw: don't copy object idtag when copying object Fixes: #5204 When copying object we ended up also copying the original object idtag which overrode the newly generated one. When refcount put is called with the wrong idtag the count does't go down. Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_rados.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 2fdcfe5bebd..b663ed2d41f 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -1319,6 +1319,7 @@ int RGWRados::copy_obj(void *ctx, /* copying attrs from source, however acls should not be copied */ attrset[RGW_ATTR_ACL] = attrs[RGW_ATTR_ACL]; } + attrset.erase(RGW_ATTR_ID_TAG); RGWObjManifest manifest; RGWObjState *astate = NULL; -- cgit v1.2.1