From e0c2e9e55836b9f4837532e7e71da175001df463 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Fri, 20 Nov 2020 12:32:48 -0500 Subject: [PATCH] rgw: remove rgw_bucket_shard_sync_info::full_marker Signed-off-by: Casey Bodley --- src/rgw/rgw_data_sync.cc | 4 ---- src/rgw/rgw_data_sync.h | 11 ++++++----- src/rgw/rgw_json_enc.cc | 2 -- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index 87e8fbb2eea..61bb9367826 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -2860,9 +2860,6 @@ void rgw_bucket_shard_sync_info::decode_from_attrs(CephContext *cct, map& attrs) { encode_state_attr(attrs); - full_marker.encode_attr(attrs); inc_marker.encode_attr(attrs); } diff --git a/src/rgw/rgw_data_sync.h b/src/rgw/rgw_data_sync.h index 0a74430ec25..64d5d18d93a 100644 --- a/src/rgw/rgw_data_sync.h +++ b/src/rgw/rgw_data_sync.h @@ -529,7 +529,6 @@ struct rgw_bucket_shard_sync_info { }; uint16_t state; - rgw_bucket_shard_full_sync_marker full_marker; rgw_bucket_shard_inc_sync_marker inc_marker; void decode_from_attrs(CephContext *cct, std::map& attrs); @@ -537,17 +536,19 @@ struct rgw_bucket_shard_sync_info { void encode_state_attr(std::map& attrs); void encode(bufferlist& bl) const { - ENCODE_START(1, 1, bl); + ENCODE_START(2, 1, bl); encode(state, bl); - encode(full_marker, bl); encode(inc_marker, bl); ENCODE_FINISH(bl); } void decode(bufferlist::const_iterator& bl) { - DECODE_START(1, bl); + DECODE_START(2, bl); decode(state, bl); - decode(full_marker, bl); + if (struct_v <= 1) { + rgw_bucket_shard_full_sync_marker full_marker; + decode(full_marker, bl); + } decode(inc_marker, bl); DECODE_FINISH(bl); } diff --git a/src/rgw/rgw_json_enc.cc b/src/rgw/rgw_json_enc.cc index ce7c06b8c15..2b3a7051a44 100644 --- a/src/rgw/rgw_json_enc.cc +++ b/src/rgw/rgw_json_enc.cc @@ -1800,7 +1800,6 @@ void rgw_bucket_shard_sync_info::decode_json(JSONObj *obj) } else { state = StateInit; } - JSONDecoder::decode_json("full_marker", full_marker, obj); JSONDecoder::decode_json("inc_marker", inc_marker, obj); } @@ -1825,7 +1824,6 @@ void rgw_bucket_shard_sync_info::dump(Formatter *f) const break; } encode_json("status", s, f); - encode_json("full_marker", full_marker, f); encode_json("inc_marker", inc_marker, f); } -- 2.47.3