]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/rados: fix init/shutdown order for RGWIndexCompletionManager 66487/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 2 Dec 2025 21:19:05 +0000 (16:19 -0500)
committerCasey Bodley <cbodley@redhat.com>
Tue, 2 Dec 2025 21:30:55 +0000 (16:30 -0500)
commit06188d0b2057e3242e2f69824bf52f23ccf868fa
treebd3368e4e4b3e18ca4ea9f7dec41e7e4670504b5
parentf4e964eea620f74af9dbde1419240e23238d0e67
rgw/rados: fix init/shutdown order for RGWIndexCompletionManager

RGWRados::init_complete() initializes this RGWIndexCompletionManager
after starting some background threads that depend on it, like RGWLC and
RGWDataSyncProcessorThread and RGWObjectExpirer. this can lead to a
crash when accessing a null index_completion_manager

RGWRados::finalize() deletes it before stopping the Restore thread

Fixes: https://tracker.ceph.com/issues/74067
Reported-by: J. Eric Ivancich <ivancich@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/driver/rados/rgw_rados.cc