Skip to content

Commit 75c4166

Browse files
authored
Merge pull request ceph#57774 from linuxbox2/wip-rgwlc-66287
rgwlc: print new filters and newer-noncurrent elements in radosgw-adm… Reviewed-by: Casey Bodley <[email protected]>
2 parents 63899d5 + bf16b42 commit 75c4166

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
@@ -2993,6 +2993,12 @@ void lc_op::dump(Formatter *f) const
29932993
void LCFilter::dump(Formatter *f) const
29942994
{
29952995
f->dump_string("prefix", prefix);
2996+
if (has_size_gt()) {
2997+
f->dump_string("obj_size_gt", size_gt);
2998+
}
2999+
if (has_size_lt()) {
3000+
f->dump_string("obj_size_lt", size_lt);
3001+
}
29963002
f->dump_object("obj_tags", obj_tags);
29973003
if (have_flag(LCFlagType::ArchiveZone)) {
29983004
f->dump_string("archivezone", "");
@@ -3003,6 +3009,9 @@ void LCExpiration::dump(Formatter *f) const
30033009
{
30043010
f->dump_string("days", days);
30053011
f->dump_string("date", date);
3012+
if (has_newer()) {
3013+
f->dump_string("newer_noncurrent_versions", newer_noncurrent);
3014+
}
30063015
}
30073016

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

0 commit comments

Comments
 (0)