]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/messages/MGatherCaps.h
import 15.2.0 Octopus source
[ceph.git] / ceph / src / messages / MGatherCaps.h
index fe8b4187c5539c1ddc4918cf8e3a3607e72d6145..e4f981d6b865d1e54324ec55ad48314d81332b2f 100644 (file)
@@ -4,16 +4,16 @@
 #include "msg/Message.h"
 
 
-class MGatherCaps : public MessageInstance<MGatherCaps> {
-public:
-  friend factory;
-
+class MGatherCaps : public Message {
+  static constexpr int HEAD_VERSION = 1;
+  static constexpr int COMPAT_VERSION = 1;
 
+public:
   inodeno_t ino;
 
 protected:
   MGatherCaps() :
-    MessageInstance(MSG_MDS_GATHERCAPS) {}
+    Message{MSG_MDS_GATHERCAPS, HEAD_VERSION, COMPAT_VERSION} {}
   ~MGatherCaps() override {}
 
 public:
@@ -31,7 +31,9 @@ public:
     auto p = payload.cbegin();
     decode(ino, p);
   }
-
+private:
+  template<class T, typename... Args>
+  friend boost::intrusive_ptr<T> ceph::make_message(Args&&... args);
 };
 
 #endif