]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
auth/AuthRegistry: refresh config on startup
authorPatrick Donnelly <pdonnell@ibm.com>
Wed, 30 Jul 2025 02:38:21 +0000 (22:38 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Mon, 26 Jan 2026 15:27:37 +0000 (10:27 -0500)
I don't think this makes a functional difference but these configs should be
loaded at startup otherwise it relies on obs startup to load them.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
src/auth/AuthRegistry.cc

index 3ee71842b685191db37f7229eba6fb75bf10f7bc..4dfba8486bd9fe0c98ee4bf9ef59b2fb1618369b 100644 (file)
@@ -23,6 +23,7 @@ AuthRegistry::AuthRegistry(CephContext *cct)
   : cct(cct)
 {
   cct->_conf.add_observer(this);
+  _refresh_config();
 }
 
 AuthRegistry::~AuthRegistry()
@@ -53,6 +54,7 @@ void AuthRegistry::handle_conf_change(
   const ConfigProxy& conf,
   const std::set<std::string>& changed)
 {
+  ldout(cct, 20) << __func__ << ": changed: " << changed << dendl;
   std::scoped_lock l(lock);
   _refresh_config();
 }