summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/common/options/rgw.yaml.in2
-rw-r--r--src/rgw/librgw.cc2
-rw-r--r--src/rgw/rgw_lib.h4
-rw-r--r--src/rgw/rgw_main.h7
4 files changed, 9 insertions, 6 deletions
diff --git a/src/common/options/rgw.yaml.in b/src/common/options/rgw.yaml.in
index 024d9f17279..a8cf381fe19 100644
--- a/src/common/options/rgw.yaml.in
+++ b/src/common/options/rgw.yaml.in
@@ -1164,6 +1164,8 @@ options:
services:
- rgw
with_legacy: true
+ see_also:
+ - rgw_frontends
- name: rgw_rados_pool_autoscale_bias
type: float
level: advanced
diff --git a/src/rgw/librgw.cc b/src/rgw/librgw.cc
index 303a4f0351a..b7fad4a989c 100644
--- a/src/rgw/librgw.cc
+++ b/src/rgw/librgw.cc
@@ -514,7 +514,7 @@ namespace rgw {
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();
diff --git a/src/rgw/rgw_lib.h b/src/rgw/rgw_lib.h
index 02ed8a0393d..600a7bcedcb 100644
--- a/src/rgw/rgw_lib.h
+++ b/src/rgw/rgw_lib.h
@@ -29,11 +29,11 @@ namespace rgw {
{}
~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: "; }
diff --git a/src/rgw/rgw_main.h b/src/rgw/rgw_main.h
index d42729c745a..6ec7904c187 100644
--- a/src/rgw/rgw_main.h
+++ b/src/rgw/rgw_main.h
@@ -78,9 +78,6 @@ namespace 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)
@@ -92,6 +89,10 @@ namespace rgw {
return store;
}
+ rgw::LDAPHelper* get_ldh() {
+ return ldh.get();
+ }
+
void init_frontends1(bool nfs = false);
void init_numa();
void init_storage();