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

index 9f6c16765988ad00741e95beadadb7b70fcdb95e..cda9e1d95d7c7e525b957723ca5b872f21d238e6 100644 (file)
@@ -163,6 +163,8 @@ struct RGWObjEnt {
   char etag[MD5_DIGEST_LENGTH * 2 + 1];
 
   void encode(bufferlist& bl) const {
+    __u8 struct_v = 1;
+    ::encode(struct_v, bl);
     __u64 s = size;
     __u32 mt = mtime;
     ::encode(name, bl);
@@ -170,6 +172,8 @@ struct RGWObjEnt {
     ::encode(mt, bl);
   }
   void decode(bufferlist::iterator& bl) {
+    __u8 struct_v;
+    ::decode(struct_v, bl);
     __u32 mt;
     __u64 s;
     ::decode(name, bl);