]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
RGW - Split RGWRados initialization
authorDaniel Gryniewicz <dang@redhat.com>
Mon, 2 May 2022 14:15:40 +0000 (10:15 -0400)
committerDaniel Gryniewicz <dang@redhat.com>
Mon, 2 May 2022 16:01:09 +0000 (12:01 -0400)
commitc9fdc3260a5c23a541d310eaa8fcedbe879c3f67
tree960129a619ca27e96dc763c251b6ae75d62a72ff
parentff144995a849407c258bcb763daa3e03cfce5059
RGW - Split RGWRados initialization

The inter-connectedness of RadosStore and RGWRados resulted in a
segfault during RGWRados::init_complete due to the rados pointer not
being set in RadosStore yet.

Split the calls to RGWRados::initialize and RGWRados::init_complete, so
that we can set up RadosStore between them, allowing the services
created in RGWRados::init_complete to access the RadosStore.

Fixes: https://tracker.ceph.com/issues/55512
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h
src/rgw/rgw_sal.cc