]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgwlc: print new filters and newer-noncurrent elements in radosgw-admin lc get 57774/head
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 29 May 2024 16:00:27 +0000 (12:00 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Wed, 29 May 2024 16:00:27 +0000 (12:00 -0400)
Fixes: https://tracker.ceph.com/issues/66287
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_lc.cc

index a92272fdeec6cd34be82ab05abb89f848c8409e1..f4c4139e99c8ab36b7c91398fb7a43428b38404a 100644 (file)
@@ -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