]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: resolve bugs and clean up garbage collection code 26601/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Fri, 15 Feb 2019 01:30:46 +0000 (20:30 -0500)
committerJ. Eric Ivancich <ivancich@redhat.com>
Mon, 25 Feb 2019 16:35:43 +0000 (11:35 -0500)
commit73d7d369a2cc5edc8d51d70e02420e6efbfbe297
treee1b956bd3c39467f34efca4eb98f1726962e4a56
parent781f314180844de0b60c44dda6f0f3df84a5897a
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>
src/cls/rgw/cls_rgw.cc
src/common/options.cc
src/rgw/rgw_gc.cc