]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
msg: constify getter
authorPatrick Donnelly <pdonnell@ibm.com>
Tue, 22 Jul 2025 02:50:47 +0000 (22:50 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Mon, 5 Jan 2026 21:23:37 +0000 (16:23 -0500)
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
src/mgr/DaemonServer.cc
src/mon/Monitor.cc
src/msg/Connection.h
src/osd/OSD.cc

index 3b657c57ffe8c501c2905733c5d7cb1230e20d0d..09fdf11016541cfb41604d4fb1193d8d82000269 100644 (file)
@@ -286,7 +286,7 @@ bool DaemonServer::ms_handle_fast_authentication(Connection *con)
           << " addr " << con->get_peer_addrs()
           << dendl;
 
-  AuthCapsInfo &caps_info = con->get_peer_caps_info();
+  auto& caps_info = con->get_peer_caps_info();
   if (caps_info.allow_all) {
     dout(10) << " session " << s << " " << s->entity_name
             << " allow_all" << dendl;
index f18b26d29063cf8b0c52f2814ea14356575945de..4d9c79cd7ff1771e5a95f3c67f5eef4c116315bf 100644 (file)
@@ -6728,7 +6728,7 @@ bool Monitor::ms_handle_fast_authentication(Connection *con)
           << " addr " << s->con->get_peer_addr()
           << " " << *s << dendl;
 
-  AuthCapsInfo &caps_info = con->get_peer_caps_info();
+  auto& caps_info = con->get_peer_caps_info();
   if (caps_info.allow_all) {
     s->caps.set_allow_all();
     s->authenticated = true;
index ce167343711bdde8fc826a4c2bf9eb053428962f..ccdfb4d274709ea8a2ad10859f7c78dcea76f859 100644 (file)
@@ -165,7 +165,7 @@ public:
   virtual void shutdown() = 0;
 
   // WARNING / FIXME: this is not populated for loopback connections
-  AuthCapsInfo& get_peer_caps_info() {
+  AuthCapsInfo const& get_peer_caps_info() const {
     return peer_caps_info;
   }
   const EntityName& get_peer_entity_name() {
index 5e8ef8927cd12d61c25c4e853f6559217dd9d248..91063a483befb0f5806c0584be207cc1cd4850b4 100644 (file)
@@ -7779,7 +7779,7 @@ bool OSD::ms_handle_fast_authentication(Connection *con)
             << " addr " << con->get_peer_addrs() << dendl;
   }
 
-  AuthCapsInfo &caps_info = con->get_peer_caps_info();
+  auto& caps_info = con->get_peer_caps_info();
   if (caps_info.allow_all) {
     s->caps.set_allow_all();
     return true;