when called on a versioned object, prepare() may follow olh and look up
a different object instance
but when called on a multipart part, we should not overwrite the
original object name with the part's object name (of the form
mymultipart.2~_XLFNqOW0NuiALg7q4-Hi_7hdtAkZUH.1)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
6fc57159ef7e5b46e0198db98fff5c7ac8f8880c)
if (ret < 0)
return ret;
- source->set_key(parent_op.state.obj.key);
+ source->set_instance(parent_op.state.obj.key.instance);
source->set_obj_size(obj_size);
return ret;