]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/messages/MMonCommand.h
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / messages / MMonCommand.h
index 29e4269e87820d2c3363fee5cee1e6d87f901f2b..1f1e6728bc9b086332c171c9e9759d9a59da9bbe 100644 (file)
@@ -20,8 +20,8 @@
 #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:
@@ -38,7 +38,14 @@ 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:
@@ -81,6 +88,7 @@ public:
     decode(fsid, p);
     decode(cmd, p);
   }
+
 private:
   template<class T, typename... Args>
   friend boost::intrusive_ptr<T> ceph::make_message(Args&&... args);