]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/net: add get_mytype() to Messenger
authorYingxin Cheng <yingxincheng@gmail.com>
Wed, 6 Mar 2019 09:32:41 +0000 (17:32 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 5 Apr 2019 03:21:18 +0000 (11:21 +0800)
Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
src/crimson/net/Messenger.h

index 9d766cb061e4f74505b3a68063294abfd03cbd69..e3a684e32f02a907cf80f9e9f0144c2309dacc5e 100644 (file)
@@ -39,6 +39,7 @@ class Messenger {
   {}
   virtual ~Messenger() {}
 
+  int get_mytype() const { return my_name.type(); }
   const entity_name_t& get_myname() const { return my_name; }
   const entity_addrvec_t& get_myaddrs() const { return my_addrs; }
   entity_addr_t get_myaddr() const { return my_addrs.front(); }