]> 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>
Fri, 3 May 2024 19:48:20 +0000 (15:48 -0400)
commit91dc7f3be945dccd8f59e070e9bc43a2a5df12db
tree0bc7f2bfffe1b1bed883fd0599047430badb7991
parentd09b8ab2e077ceb6a0c6dfb99ce1b45d63a28be4
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>
src/rgw/rgw_op.cc