From: Yehuda Sadeh Date: Thu, 30 May 2013 16:34:21 +0000 (-0700) Subject: rgw: don't copy object idtag when copying object X-Git-Tag: v0.56.7~17 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f42e84ee3148dcc59a05c8a12ce39996eb854e26;p=ceph.git 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 Reviewed-by: Greg Farnum (cherry picked from commit b1312f94edc016e604f1d05ccfe2c788677f51d1) --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 31332b5993ec..27f996ccdf59 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -1287,6 +1287,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;