mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +00:00
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:
commit
b6822c8a36
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user