]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix self-comparison for RGWCopyObj optimization 43710/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 28 Oct 2021 19:20:26 +0000 (15:20 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 28 Oct 2021 19:20:29 +0000 (15:20 -0400)
commitec4f5cd0e15748d9dc7a579a8c731bbfe30a5aef
tree55306389f42a8abe2d50b9812285fb6058348210
parent558a2ec6189261b2a2657471b4272993dbbfe5e0
rgw: fix self-comparison for RGWCopyObj optimization

when RGWCopyObj is copying an object onto itself (for example,
's3cmd modify' does this to add/remove metadata), we can avoid
the need to increment the reference count of each tail object.
this self-comparison check was broken during zipper refactoring,
comparing raw pointers instead of the object keys

Fixes: https://tracker.ceph.com/issues/53003
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_rados.cc