]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
messages: MForward: fix compat version 2083/head
authorJoao Eduardo Luis <joao.luis@inktank.com>
Tue, 8 Jul 2014 15:46:27 +0000 (16:46 +0100)
committerJoao Eduardo Luis <jeclui@gmail.com>
Tue, 8 Jul 2014 16:42:53 +0000 (17:42 +0100)
A while ago we bumped the head version and reset the compat version to 0.
Doing this so happens to make the messenger assume that the message does
not support the compat versioning and sets the compat version to the head
version -- thus making compat = 2 when it should have been 1.

The nasty side-effect of this is that upgrading from emperor to firefly
will have emperor-leaders being unable to decode forwarded messages from
firefly-peons.

Fixes: #8727
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
(cherry picked from commit c92feebb81f90344a085f8256f0ed03cdc2f14e1)

src/messages/MForward.h

index 312819721f53456b87be9ec66454920620bd9ba7..6a0e2bf71cbc4fca958508f54ae8b87c5f92a4c2 100644 (file)
@@ -31,7 +31,7 @@ struct MForward : public Message {
   uint64_t con_features;
 
   static const int HEAD_VERSION = 2;
-  static const int COMPAT_VERSION = 0;
+  static const int COMPAT_VERSION = 1;
 
   MForward() : Message(MSG_FORWARD, HEAD_VERSION, COMPAT_VERSION),
                tid(0), msg(NULL), con_features(0) {}