From: Matt Benjamin Date: Wed, 29 May 2024 16:00:27 +0000 (-0400) Subject: rgwlc: print new filters and newer-noncurrent elements in radosgw-admin lc get X-Git-Tag: v20.0.0~1836^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F57774%2Fhead;p=ceph.git rgwlc: print new filters and newer-noncurrent elements in radosgw-admin lc get Fixes: https://tracker.ceph.com/issues/66287 Signed-off-by: Matt Benjamin --- diff --git a/src/rgw/rgw_lc.cc b/src/rgw/rgw_lc.cc index a92272fdeec6..f4c4139e99c8 100644 --- a/src/rgw/rgw_lc.cc +++ b/src/rgw/rgw_lc.cc @@ -2997,6 +2997,12 @@ void lc_op::dump(Formatter *f) const void LCFilter::dump(Formatter *f) const { f->dump_string("prefix", prefix); + if (has_size_gt()) { + f->dump_string("obj_size_gt", size_gt); + } + if (has_size_lt()) { + f->dump_string("obj_size_lt", size_lt); + } f->dump_object("obj_tags", obj_tags); if (have_flag(LCFlagType::ArchiveZone)) { f->dump_string("archivezone", ""); @@ -3007,6 +3013,9 @@ void LCExpiration::dump(Formatter *f) const { f->dump_string("days", days); f->dump_string("date", date); + if (has_newer()) { + f->dump_string("newer_noncurrent_versions", newer_noncurrent); + } } void LCRule::dump(Formatter *f) const