summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@inktank.com>2013-05-30 09:34:21 -0700
committerGreg Farnum <greg@inktank.com>2013-05-31 10:30:41 -0700
commit3d91301e5d788f9f9f52ba4067006f39a89e1531 (patch)
tree49008574b721a5453445e30a99f6989483f93fd1
parent131dca7d10d5b0b7dca5c5cbe9b0b54938805015 (diff)
downloadceph-3d91301e5d788f9f9f52ba4067006f39a89e1531.tar.gz
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 <yehuda@inktank.com> Reviewed-by: Greg Farnum <greg@inktank.com> (cherry picked from commit b1312f94edc016e604f1d05ccfe2c788677f51d1)
-rw-r--r--src/rgw/rgw_rados.cc1
1 files changed, 1 insertions, 0 deletions
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;