Merge PR #25614 into master

* refs/pull/25614/head:
	cls/rgw: update rgw_cls_usage_log_trim_op encode version

Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2018-12-19 11:45:29 -06:00
commit b6822c8a36

View File

@ -767,7 +767,7 @@ struct rgw_cls_usage_log_trim_op {
string bucket;
void encode(bufferlist& bl) const {
ENCODE_START(2, 2, bl);
ENCODE_START(3, 2, bl);
encode(start_epoch, bl);
encode(end_epoch, bl);
encode(user, bl);
@ -776,11 +776,11 @@ struct rgw_cls_usage_log_trim_op {
}
void decode(bufferlist::const_iterator& bl) {
DECODE_START(2, bl);
DECODE_START(3, bl);
decode(start_epoch, bl);
decode(end_epoch, bl);
decode(user, bl);
if (struct_v >= 2) {
if (struct_v >= 3) {
decode(bucket, bl);
}
DECODE_FINISH(bl);