]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: resolve bugs and clean up garbage collection code 31664/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Fri, 15 Feb 2019 01:30:46 +0000 (20:30 -0500)
committerDan Hill <daniel.hill@canonical.com>
Mon, 18 Nov 2019 21:56:45 +0000 (14:56 -0700)
commit26f22d220a2c37e5030aca24ee0e438a9b47c765
tree49fc0f3f270a8b593052061e4f1f144d5c8c2a0e
parent5b7773dd43f91886a1db6e99095b38d58806502b
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)
src/cls/rgw/cls_rgw.cc
src/common/options.cc
src/rgw/rgw_gc.cc