From 2c4bece289735ced9813abe7566df94400a0cdaf Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 24 Feb 2017 17:00:16 -0500 Subject: [PATCH] msg/Connection: implement peer_is_mgr() Signed-off-by: Sage Weil --- src/msg/Connection.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/msg/Connection.h b/src/msg/Connection.h index 76910b65b7b..94e934c55f1 100644 --- a/src/msg/Connection.h +++ b/src/msg/Connection.h @@ -155,6 +155,7 @@ public: void set_peer_type(int t) { peer_type = t; } bool peer_is_mon() const { return peer_type == CEPH_ENTITY_TYPE_MON; } + bool peer_is_mgr() const { return peer_type == CEPH_ENTITY_TYPE_MGR; } bool peer_is_mds() const { return peer_type == CEPH_ENTITY_TYPE_MDS; } bool peer_is_osd() const { return peer_type == CEPH_ENTITY_TYPE_OSD; } bool peer_is_client() const { return peer_type == CEPH_ENTITY_TYPE_CLIENT; } -- 2.39.5