]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/lc: LCOpAction_CurrentExpiration checks mtime for delete markers
authorCasey Bodley <cbodley@redhat.com>
Wed, 24 Sep 2025 17:20:09 +0000 (13:20 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 15 Oct 2025 15:16:39 +0000 (11:16 -0400)
commit511205af30e254d40eab26313d52a7fdb067c05d
treea4aebeb66042bbb08f6cf9a1b0e35c8dd57232d3
parent479dcf639c7dc345a8fe3dbbe75647179c674e5d
rgw/lc: LCOpAction_CurrentExpiration checks mtime for delete markers

the unconditional 'return true' for delete markers was causing check()
to ignore the lifecycle policy's "Days" field, causing delete markers to
be expired and removed prematurely

instead of the early return, fall through to the mtime/size comparisons
used for normal objects

Fixes: https://tracker.ceph.com/issues/73240
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 102eaa833d2b0c89a95a0e06876a16b3e2e6c6d8)
src/rgw/rgw_lc.cc