]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: Fix swift object expiry not deleting objects
authorPavan Rallabhandi <PRallabhandi@walmartlabs.com>
Wed, 8 Nov 2017 16:05:54 +0000 (21:35 +0530)
committerPavan Rallabhandi <PRallabhandi@walmartlabs.com>
Thu, 9 Nov 2017 16:10:00 +0000 (21:40 +0530)
commit70adfaae5073d2680a9722526a6a19795dd18780
treeb6a9c6144a54cd43bff317ca1b44673bab8cdc4f
parentf71a604fed2d5fb67a87064cfbd4af6717886ad4
rgw: Fix swift object expiry not deleting objects

In cls_timeindex_list() though `to_index` has expired for a timespan, the marker is set for a subsequent index during the time boundary check.
This marker is further returned to RGWObjectExpirer::process_single_shard(), where this out_marker is trimmed from the respective shard,
resulting in a lost removal hint and a leaked object.

Fixes: http://tracker.ceph.com/issues/22084
Signed-off-by: Pavan Rallabhandi <PRallabhandi@walmartlabs.com>
src/cls/timeindex/cls_timeindex.cc