We don't bump the encoding version -- and stick it in the middle --
since it's still brand-new. For simplicity, we encode it unconditionally
rather than trying to embed it alongside the attrs or with its own
"complete" flag in the cursor.
Signed-off-by: Greg Farnum <greg@inktank.com>
// size, mtime
reply_obj.size = oi.size;
reply_obj.mtime = oi.mtime;
+ reply_obj.category = oi.category;
// attrs
map<string,bufferlist>& out_attrs = reply_obj.attrs;
ENCODE_START(1, 1, bl);
::encode(size, bl);
::encode(mtime, bl);
+ ::encode(category, bl);
::encode(attrs, bl);
::encode(data, bl);
::encode(omap, bl);
DECODE_START(1, bl);
::decode(size, bl);
::decode(mtime, bl);
+ ::decode(category, bl);
::decode(attrs, bl);
::decode(data, bl);
::decode(omap, bl);
map<string, bufferlist> attrs;
bufferlist data;
map<string, bufferlist> omap;
+ string category;
public:
object_copy_data_t() : size((uint64_t)-1) {}