]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: Fix swift object expiry not deleting objects 19090/head
authorPavan Rallabhandi <PRallabhandi@walmartlabs.com>
Wed, 8 Nov 2017 16:05:54 +0000 (21:35 +0530)
committerPrashant D <pdhange@redhat.com>
Wed, 22 Nov 2017 00:41:33 +0000 (19:41 -0500)
commit05b60db8ef1999bb7a75f7cbbc721f64e67cec48
tree25cc5148f7812c8ad7e8427ed5e2cc94d7b50b62
parent613634c1da4cea975d6e1da7d258600c454c9400
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>
(cherry picked from commit 70adfaae5073d2680a9722526a6a19795dd18780)
src/cls/timeindex/cls_timeindex.cc