]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: cloud sync: fix crash due to objs on cr stack
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 26 Aug 2022 13:49:01 +0000 (09:49 -0400)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 26 Aug 2022 13:49:01 +0000 (09:49 -0400)
commitae677264411f80a5587164c48a6a17390eaf72c9
tree9e0d60e07d7c580e8c8c0059ee2377f0d7e57c55
parent123b8a3db7dfa0ce6e90a14111d46fdf1724b7b3
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