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)
/* 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;