Skip to content

Commit bf16b42

Browse files
committed
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 <[email protected]>
1 parent 6e2527c commit bf16b42

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/rgw/rgw_lc.cc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2997,6 +2997,12 @@ void lc_op::dump(Formatter *f) const
29972997
void LCFilter::dump(Formatter *f) const
29982998
{
29992999
f->dump_string("prefix", prefix);
3000+
if (has_size_gt()) {
3001+
f->dump_string("obj_size_gt", size_gt);
3002+
}
3003+
if (has_size_lt()) {
3004+
f->dump_string("obj_size_lt", size_lt);
3005+
}
30003006
f->dump_object("obj_tags", obj_tags);
30013007
if (have_flag(LCFlagType::ArchiveZone)) {
30023008
f->dump_string("archivezone", "");
@@ -3007,6 +3013,9 @@ void LCExpiration::dump(Formatter *f) const
30073013
{
30083014
f->dump_string("days", days);
30093015
f->dump_string("date", date);
3016+
if (has_newer()) {
3017+
f->dump_string("newer_noncurrent_versions", newer_noncurrent);
3018+
}
30103019
}
30113020

30123021
void LCRule::dump(Formatter *f) const

0 commit comments

Comments
 (0)