]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
msg/msg_types: add entity_addr_t::is_any()
authorSage Weil <sage@redhat.com>
Sun, 3 Feb 2019 18:03:11 +0000 (12:03 -0600)
committerSage Weil <sage@redhat.com>
Thu, 7 Feb 2019 12:12:43 +0000 (06:12 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/msg/msg_types.h

index 7919bb9c34baa0024f1b80bd37053d73cf893279..fd20c2dadfcbf8c88e543b1ad55be7ca44a93bc8 100644 (file)
@@ -274,6 +274,7 @@ struct entity_addr_t {
   void set_type(uint32_t t) { type = t; }
   bool is_legacy() const { return type == TYPE_LEGACY; }
   bool is_msgr2() const { return type == TYPE_MSGR2; }
+  bool is_any() const { return type == TYPE_ANY; }
 
   __u32 get_nonce() const { return nonce; }
   void set_nonce(__u32 n) { nonce = n; }