]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: cloud sync: fix crash due to objs on cr stack 51136/head
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 26 Aug 2022 13:49:01 +0000 (09:49 -0400)
committerRamin Najjarbashi <ramin.najarbashi@gmail.com>
Tue, 18 Apr 2023 15:19:36 +0000 (18:49 +0330)
commit05389809ee6807042e86ab4ccb373edeaa78b3b3
tree9b438018e49522d1ae655210600aa8e2119623c9
parent28ab8ac7ee2227b2bc73d02797d24bd7e602efa1
rgw: cloud sync: fix crash due to objs on cr stack

Fixes: https://tracker.ceph.com/issues/57306
When passing objects that are declared on the stack (as ref / ptr), called
cr can't access them (other than for initialization), as the yield destroys
them. We now keep these objects as class members.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_sync_module_aws.cc