]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
journaler: struct_v in structs
authorSage Weil <sage@newdream.net>
Wed, 27 Jan 2010 21:34:27 +0000 (13:34 -0800)
committerSage Weil <sage@newdream.net>
Wed, 27 Jan 2010 22:29:11 +0000 (14:29 -0800)
src/osdc/Journaler.h

index c2f665401a8cb06a6df0713526c44ecdfcb9817f..0152857d647ccac841c13e31a682e3a6aaf852b5 100644 (file)
@@ -76,6 +76,8 @@ public:
       magic(m) { }
 
     void encode(bufferlist &bl) const {
+      __u8 struct_v = 1;
+      ::encode(struct_v, bl);
       ::encode(magic, bl);
       ::encode(trimmed_pos, bl);
       ::encode(expire_pos, bl);
@@ -84,6 +86,8 @@ public:
       ::encode(layout, bl);
     }
     void decode(bufferlist::iterator &bl) {
+      __u8 struct_v;
+      ::decode(struct_v, bl);
       ::decode(magic, bl);
       ::decode(trimmed_pos, bl);
       ::decode(expire_pos, bl);