]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
messages/MCommand: fix type on decode
authorSage Weil <sage@redhat.com>
Fri, 5 May 2017 20:48:25 +0000 (16:48 -0400)
committerSage Weil <sage@redhat.com>
Fri, 5 May 2017 22:00:57 +0000 (18:00 -0400)
Wow, this has been broken since v0.38, but apparently
the message never made it into the object corpus so
we never noticed!

In reality the bug is harmless: decode_message() will
set_header which clobbers whatever version the default
ctor fills in, so this only affects ceph-dencoder's
test.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 3018b907c1d0375b5ae20802811591c0a46b61be)

src/messages/MCommand.h

index d5f0b22f02472f7f2c9076614653876576a77615..c0eed20e355d5466d0c9ac3010ef239593a2c869 100644 (file)
@@ -25,7 +25,7 @@ class MCommand : public Message {
   std::vector<string> cmd;
 
   MCommand()
-    : Message(MSG_MON_COMMAND) {}
+    : Message(MSG_COMMAND) {}
   MCommand(const uuid_d &f)
     : Message(MSG_COMMAND),
       fsid(f) { }