]> git.apps.os.sepia.ceph.com Git - ceph.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>
Mon, 6 May 2024 17:20:56 +0000 (13:20 -0400)
commitde089de0cbd5dac6b4b9d547a2d6464e63c15b28
tree772b335f58c7d6c8cba0eccd6c27be08eba96bf6
parent7f1fda6a1254acd5f4d926565a10aa756ca14fb0
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