]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix shutdown crash in RGWAsyncReadMDLogEntries 35316/head
authorCasey Bodley <cbodley@redhat.com>
Fri, 29 May 2020 16:31:16 +0000 (12:31 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 29 May 2020 17:11:15 +0000 (13:11 -0400)
commit13bf06dbe961132ca99f470ac026674e45fecc38
tree296dccba0fdb93147195d6a2249c80c1b54836d7
parent1521908830e93307cdb8d63267b5e81552f75558
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>
src/rgw/rgw_sync.cc