encode_json("regions", regions, f);
encode_json("master_region", master_region, f);
encode_json("bucket_quota", bucket_quota, f);
+ encode_json("user_quota", user_quota, f);
}
void RGWRegionMap::decode_json(JSONObj *obj)
{
JSONDecoder::decode_json("regions", regions, obj);
JSONDecoder::decode_json("master_region", master_region, obj);
- JSONDecoder::decode_json("bucket_quota", bucket_quota, obj);
+ JSONDecoder::decode_json("user_quota", user_quota, obj);
}
void RGWMetadataLogInfo::dump(Formatter *f) const
}
void RGWRegionMap::encode(bufferlist& bl) const {
- ENCODE_START(2, 1, bl);
+ ENCODE_START(3, 1, bl);
::encode(regions, bl);
::encode(master_region, bl);
::encode(bucket_quota, bl);
+ ::encode(user_quota, bl);
ENCODE_FINISH(bl);
}
void RGWRegionMap::decode(bufferlist::iterator& bl) {
- DECODE_START(2, bl);
+ DECODE_START(3, bl);
::decode(regions, bl);
::decode(master_region, bl);
if (struct_v >= 2)
::decode(bucket_quota, bl);
+ if (struct_v >= 3)
+ ::decode(user_quota, bl);
DECODE_FINISH(bl);
regions_by_api.clear();