#include "msg/Message.h"
-class MExportCaps : public MessageInstance<MExportCaps> {
-public:
- friend factory;
+class MExportCaps : public SafeMessage {
private:
static constexpr int HEAD_VERSION = 2;
static constexpr int COMPAT_VERSION = 1;
-public:
+
+public:
inodeno_t ino;
bufferlist cap_bl;
map<client_t,entity_inst_t> client_map;
protected:
MExportCaps() :
- MessageInstance(MSG_MDS_EXPORTCAPS, HEAD_VERSION, COMPAT_VERSION) {}
+ SafeMessage{MSG_MDS_EXPORTCAPS, HEAD_VERSION, COMPAT_VERSION} {}
~MExportCaps() override {}
public:
if (header.version >= 2)
decode(client_metadata_map, p);
}
-
+private:
+ template<class T, typename... Args>
+ friend boost::intrusive_ptr<T> ceph::make_message(Args&&... args);
};
#endif