]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: CompleteMultipart uses s->object for Notification
authorCasey Bodley <cbodley@redhat.com>
Fri, 3 May 2024 19:29:00 +0000 (15:29 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 8 Aug 2024 20:46:17 +0000 (16:46 -0400)
commitcbe75cebb3b58bd1f5d07666b066541c6e50d055
tree89059b3bd005d3d1ace8f2f5b13922e6c1ced098
parentaa481f2886d6d7333d712fb3f9a0437614f89a98
rgw: CompleteMultipart uses s->object for Notification

get_notification() should be associated with the target object
s->object. the meta_obj has the wrong object name, so required passing
s->object->get_name() as an extra argument

importantly, Notification no longer depends on the lifetime of meta_obj
to avoid a dangling pointer, while the lifetime of s->object is guaranteed

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 91dc7f3be945dccd8f59e070e9bc43a2a5df12db)
src/rgw/rgw_op.cc