summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_main.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* rgw/notifications: start/stop endpoint managers in notification managerYuval Lifshitz2024-05-121-1/+0
| | | | | | Fixes: https://tracker.ceph.com/issues/65337 Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
* rgw: Asio frontend shares `io_context` with the rest of RGWAdam C. Emerson2024-01-241-2/+2
| | | | | | | Pull the `io_context` and threads out of `AsioFrontend`, pass in a reference to `io_context_pool` so it can be shut down at `AsioFrontend::join` Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
* rgw: SAL drivers take `boost::asio::io_context`Adam C. Emerson2024-01-241-1/+5
| | | | | | | `RadosDriver` needs it, and since SAL generally uses `optional_yield`, other stores are going to need it to implement that sensibly. Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
* rgw/main: init_storage() creates a ConfigStore and loads SiteConfigCasey Bodley2023-03-131-5/+10
| | | | Signed-off-by: Casey Bodley <cbodley@redhat.com>
* rgw/main: null-initialize pointer membersCasey Bodley2023-03-131-1/+1
| | | | Signed-off-by: Casey Bodley <cbodley@redhat.com>
* rgw: clean up header filesJ. Eric Ivancich2023-01-241-1/+1
| | | | | | | Remove trailing spaces and use "#pragma once" rather than "#ifndef" to assure a header files is only loaded once during compilation. Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
* rgw/lua: split out a struct RGWLuaProcessEnvCasey Bodley2022-12-131-1/+2
| | | | Signed-off-by: Casey Bodley <cbodley@redhat.com>
* rgw/main: add RGWProcessEnv in AppMainCasey Bodley2022-12-091-2/+2
| | | | | | | | | | | | | | | | 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>
* RGW - Zipper - Rename rgw::sal::Store to rgw::sal::DriverDaniel Gryniewicz2022-12-081-7/+7
| | | | | | | | | | | | All along, we've had an overload of the term "store". It was the base class of the entrypoint, and it was the lowest layer in a stack. This renames the base class to Driver. So, the primary elements of zipper that to work are now Drivers, and they come in two different flavors: Filters live in the middle of the stack, and do not need to implement every API, but pass through instead. And Stores live a the bottom of the stack, and must implement the entire API. Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
* rgw/main: move service_map_meta into AppMainMatt Benjamin2022-09-091-0/+1
| | | | | | The RGWRealmReloader holds a reference on it. Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
* rgw/main: move signal handler actions out of shutdown()Matt Benjamin2022-09-091-1/+2
| | | | | | | AppMain::shutdown() had borrowed the unregister_async_signal_handler() text from librgw, but of course, that's wrong. Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
* rgwlib: rework linkageMatt Benjamin2022-09-091-61/+60
| | | | Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
* rgw_a: build reorganizationMatt Benjamin2022-09-091-1/+2
| | | | | | | | | | | | | Reorganize some dependencies shared by the librgw.so and radosgw main units. The librgw.so build no longer builds a main(...) unit. Build time should be slightly reduced, as several shared dependencies have been moved into rgw_a. There are some other cleanups, e.g., rgw_signal.{h,cc}. Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
* rgw/main: remove friends, see_alsoMatt Benjamin2022-09-091-3/+4
| | | | Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
* rgw/main: various doc and comment corrections by doc writersMatt Benjamin2022-09-091-1/+1
| | | | Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
* rgw/main: use AppMain in c++ main functionMatt Benjamin2022-09-091-0/+6
| | | | | | | Consolidate standalone and library initialization into one unit. Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
* rgw/main: AppMainMatt Benjamin2022-09-091-42/+25
| | | | | | | | | s/rgw::InitHelper/rgw::AppMain/; Move program state from RGWLib into AppMain, preparing it to manage program state for all RGW instances (e.g., main()). Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
* librgw: add ability to conditionally export HTTP frontends/apisMatt Benjamin2022-09-091-0/+141
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>