]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix shutdown crash in RGWAsyncReadMDLogEntries 36653/head
authorCasey Bodley <cbodley@redhat.com>
Fri, 29 May 2020 16:31:16 +0000 (12:31 -0400)
committerNathan Cutler <ncutler@suse.com>
Sat, 15 Aug 2020 13:10:22 +0000 (15:10 +0200)
commit05e6838d3e6910bddbddd75e74fc865039c3a7ae
tree17849df70b215e4f093dac63e1c095319a23c6b0
parent35adebe94e8b0a17e7b56379a8bf24e5f7b8ced4
rgw: fix shutdown crash in RGWAsyncReadMDLogEntries

RGWAsyncReadMDLogEntries must not store pointers into coroutine memory,
because it's not guaranteed to outlive our call. store these by-value
instead, and have RGWReadMDLogEntriesCR::request_complete() copy/move
them back on completion

Fixes: https://tracker.ceph.com/issues/45771
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 13bf06dbe961132ca99f470ac026674e45fecc38)
src/rgw/rgw_sync.cc