diff options
Diffstat (limited to 'src/messages/MMonCommandAck.h')
-rw-r--r-- | src/messages/MMonCommandAck.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/messages/MMonCommandAck.h b/src/messages/MMonCommandAck.h index 4d2c442bca9..03fbdae63d7 100644 --- a/src/messages/MMonCommandAck.h +++ b/src/messages/MMonCommandAck.h @@ -17,20 +17,17 @@ #include "messages/PaxosServiceMessage.h" -class MMonCommandAck : public PaxosServiceMessage { +class MMonCommandAck : public MessageInstance<MMonCommandAck, PaxosServiceMessage> { public: - typedef boost::intrusive_ptr<MMonCommandAck> ref; - typedef boost::intrusive_ptr<MMonCommandAck const> const_ref; - using factory = MessageFactory<MMonCommandAck>; friend factory; vector<string> cmd; errorcode32_t r; string rs; - MMonCommandAck() : PaxosServiceMessage(MSG_MON_COMMAND_ACK, 0) {} + MMonCommandAck() : MessageInstance(MSG_MON_COMMAND_ACK, 0) {} MMonCommandAck(vector<string>& c, int _r, string s, version_t v) : - PaxosServiceMessage(MSG_MON_COMMAND_ACK, v), + MessageInstance(MSG_MON_COMMAND_ACK, v), cmd(c), r(_r), rs(s) { } private: ~MMonCommandAck() override {} |