Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
services:
- rgw
with_legacy: true
+ see_also:
+ - rgw_frontends
- name: rgw_rados_pool_autoscale_bias
type: float
level: advanced
common_init_finish(g_ceph_context);
main.init_storage();
- if (! main.store) {
+ if (! main.get_store()) {
mutex.lock();
init_timer.cancel_all_events();
init_timer.shutdown();
{}
~RGWLib() {}
- rgw::sal::Store* get_store() { return main.store; }
+ rgw::sal::Store* get_store() { return main.get_store(); }
RGWLibFrontend* get_fe() { return fe; }
- rgw::LDAPHelper* get_ldh() { return main.ldh.get(); }
+ rgw::LDAPHelper* get_ldh() { return main.get_ldh(); }
CephContext *get_cct() const override { return cct.get(); }
unsigned get_subsys() const { return ceph_subsys_rgw; }
std::ostream& gen_prefix(std::ostream& out) const { return out << "lib rgw: "; }
rgw::sal::Store* store;
DoutPrefixProvider* dpp;
- friend int main(int, char*[]); // doesnt work gcc-12.1
- friend class RGWLib;
-
public:
AppMain(DoutPrefixProvider* dpp)
: dpp(dpp)
return store;
}
+ rgw::LDAPHelper* get_ldh() {
+ return ldh.get();
+ }
+
void init_frontends1(bool nfs = false);
void init_numa();
void init_storage();