#include <vector>
#include <string>
-using TOPNSPC::common::cmdmap_from_json;
-using TOPNSPC::common::cmd_getval;
+using ceph::common::cmdmap_from_json;
+using ceph::common::cmd_getval;
class MMonCommand final : public PaxosServiceMessage {
public:
fsid(f)
{ }
-private:
+ MMonCommand(const MMonCommand &other)
+ : PaxosServiceMessage(MSG_MON_COMMAND, 0),
+ fsid(other.fsid),
+ cmd(other.cmd) {
+ set_tid(other.get_tid());
+ set_data(other.get_data());
+ }
+
~MMonCommand() final {}
public:
decode(fsid, p);
decode(cmd, p);
}
+
private:
template<class T, typename... Args>
friend boost::intrusive_ptr<T> ceph::make_message(Args&&... args);