]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: include damage_flags in inter-mds encoding
authorJohn Spray <john.spray@redhat.com>
Thu, 25 Jun 2015 13:08:39 +0000 (14:08 +0100)
committerJohn Spray <john.spray@redhat.com>
Mon, 13 Jul 2015 13:05:16 +0000 (14:05 +0100)
...and correspondingly bump the cluster protocol
version as these structures are not versioned
themselves.

Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/CInode.cc
src/mds/MDS.h

index 858076a98cfb52dcbbcd9e8f3fef1f257e0ccd38..6f770a5b2f261b981077d33637fa8adce8f49fa5 100644 (file)
@@ -3351,6 +3351,7 @@ void CInode::_encode_base(bufferlist& bl)
   ::encode(dirfragtree, bl);
   ::encode(xattrs, bl);
   ::encode(old_inodes, bl);
+  ::encode(damage_flags, bl);
   encode_snap(bl);
 }
 void CInode::_decode_base(bufferlist::iterator& p)
@@ -3361,6 +3362,7 @@ void CInode::_decode_base(bufferlist::iterator& p)
   ::decode(dirfragtree, p);
   ::decode(xattrs, p);
   ::decode(old_inodes, p);
+  ::decode(damage_flags, p);
   decode_snap(p);
 }
 
index 8fecfb745030707839cc486af5ed33dcd4e416f0..d364540c843984ecc133a74d4d33f95791291f71 100644 (file)
@@ -39,7 +39,7 @@
 #include "Beacon.h"
 
 
-#define CEPH_MDS_PROTOCOL    26 /* cluster internal */
+#define CEPH_MDS_PROTOCOL    27 /* cluster internal */
 
 enum {
   l_mds_first = 2000,