]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/mgr/MgrSession.h
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / mgr / MgrSession.h
index c52e2e177761ac979eeea3791d9c69aa05c7f764..c61a80b63e7e3f19a08197d9f0cdce18ecf855d2 100644 (file)
@@ -25,8 +25,12 @@ struct MgrSession : public RefCountedObject {
 
   std::set<std::string> declared_types;
 
-  MgrSession(CephContext *cct) : RefCountedObject(cct, 0) {}
+  explicit MgrSession(CephContext *cct) : RefCountedObject(cct, 0) {}
   ~MgrSession() override {}
+
+  const entity_addr_t& get_peer_addr() {
+    return inst.addr;
+  }
 };
 
 typedef boost::intrusive_ptr<MgrSession> MgrSessionRef;