From caaeb522e835aa8380cfc5f6049374fe6fe08995 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 27 Jan 2010 13:34:46 -0800 Subject: [PATCH] rgw: struct_v in RGWObjEnt --- src/rgw/rgw_common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h index 9f6c16765988a..cda9e1d95d7c7 100644 --- a/src/rgw/rgw_common.h +++ b/src/rgw/rgw_common.h @@ -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); -- 2.39.5