rgw: resolve bugs and clean up garbage collection code
Does a number of things to clean up rgw gc code:
* adds additional logging to make future debugging easier.
* resolves bug where the truncated flag was not always set correctly
in gc_iterate_entries
* resolves bug where marker in RGWGC::process was not advanced
* resolves bug in which gc entries with a zero-length chain
were not trimmed
* resolves bug where same gc entry tag was added to list for
deletion multiple times
Fixes: http://tracker.ceph.com/issues/38454
Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit
73d7d36)
Conflicts:
src/rgw/rgw_gc.cc dout() vs ldpp_dout()
Note: This was a clean cherry-pick from Mimic, which already resolved
dout() vs ldpp_dout() conficts.
Signed-off-by: Dan Hill <daniel.hill@canonical.com>
(cherry picked from commit
a598ccce2e)