]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: resolve bugs and clean up garbage collection code 27796/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Fri, 15 Feb 2019 01:30:46 +0000 (20:30 -0500)
committerCasey Bodley <cbodley@redhat.com>
Mon, 29 Apr 2019 13:10:16 +0000 (09:10 -0400)
commita598ccce2e6863a00500504532ce15a022649520
tree41bbcd6762722d77991441db38b99f97ac86a45f
parente6d1c63fd38c48cf28d24410394758bb9f18bba8
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 73d7d369a2cc5edc8d51d70e02420e6efbfbe297)

Conflicts:
src/rgw/rgw_gc.cc dout() vs ldpp_dout()
src/cls/rgw/cls_rgw.cc
src/common/options.cc
src/rgw/rgw_gc.cc