From d97154e61bb615faf566a42a878b2e7a303d99ae Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 5 May 2017 16:48:25 -0400 Subject: [PATCH] messages/MCommand: fix type on decode 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 (cherry picked from commit 3018b907c1d0375b5ae20802811591c0a46b61be) --- src/messages/MCommand.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messages/MCommand.h b/src/messages/MCommand.h index d5f0b22f02472..c0eed20e355d5 100644 --- a/src/messages/MCommand.h +++ b/src/messages/MCommand.h @@ -25,7 +25,7 @@ class MCommand : public Message { std::vector cmd; MCommand() - : Message(MSG_MON_COMMAND) {} + : Message(MSG_COMMAND) {} MCommand(const uuid_d &f) : Message(MSG_COMMAND), fsid(f) { } -- 2.39.5