]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/main: add RGWProcessEnv in AppMain
authorCasey Bodley <cbodley@redhat.com>
Mon, 24 Oct 2022 18:09:10 +0000 (14:09 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 9 Dec 2022 20:43:23 +0000 (15:43 -0500)
commit66f637e477c0d3feeb320d6c8d5330ad1e1c1ef1
treed0c694c3c6519479596c99c3b92a7680af1da91a
parent957a6e951c2305a815b539f36f2bbcc863f16907
rgw/main: add RGWProcessEnv in AppMain

instead of constructing a separate RGWProcessEnv for each frontend,
initialize a single instance in AppMain and share a reference with each
frontend

RGWRealmReloader now takes a reference to RGWProcessEnv instead of a
reference to the Store pointer itself, and updates RGWProcessEnv::store
on realm reload

because RGWRealmReloader may mutate RGWProcessEnv::store, we no longer have
a separate AppMain::store pointer, so don't worry about keeping that
consistent over reloads

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_appmain.cc
src/rgw/rgw_main.h
src/rgw/rgw_realm_reloader.cc
src/rgw/rgw_realm_reloader.h