]> 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:02:45 +0000 (18:02 -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>
src/messages/MCommand.h

index f1077644f3fe8a32a2482231fe5423c3905ea1bf..d6f59fe4c08229d59566da6ddfecc3e80c59a1b0 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) { }