summaryrefslogtreecommitdiffstats
path: root/src/messages/MMDSSlaveRequest.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/messages/MMDSSlaveRequest.h')
-rw-r--r--src/messages/MMDSSlaveRequest.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/messages/MMDSSlaveRequest.h b/src/messages/MMDSSlaveRequest.h
index c449a79042c..9e80aff627f 100644
--- a/src/messages/MMDSSlaveRequest.h
+++ b/src/messages/MMDSSlaveRequest.h
@@ -19,11 +19,8 @@
#include "msg/Message.h"
#include "mds/mdstypes.h"
-class MMDSSlaveRequest : public Message {
+class MMDSSlaveRequest : public MessageInstance<MMDSSlaveRequest> {
public:
- typedef boost::intrusive_ptr<MMDSSlaveRequest> ref;
- typedef boost::intrusive_ptr<MMDSSlaveRequest const> const_ref;
- using factory = MessageFactory<MMDSSlaveRequest>;
friend factory;
static const int OP_XLOCK = 1;
@@ -161,9 +158,9 @@ public:
bufferlist& get_lock_data() { return inode_export; }
protected:
- MMDSSlaveRequest() : Message(MSG_MDS_SLAVE_REQUEST) { }
+ MMDSSlaveRequest() : MessageInstance(MSG_MDS_SLAVE_REQUEST) { }
MMDSSlaveRequest(metareqid_t ri, __u32 att, int o) :
- Message(MSG_MDS_SLAVE_REQUEST),
+ MessageInstance(MSG_MDS_SLAVE_REQUEST),
reqid(ri), attempt(att), op(o), flags(0), lock_type(0),
inode_export_v(0), srcdn_auth(MDS_RANK_NONE) { }
~MMDSSlaveRequest() override {}