]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgwlc: avoid front() on empty lc entry vector
authorMatt Benjamin <mbenjamin@redhat.com>
Fri, 18 Feb 2022 14:31:06 +0000 (09:31 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Thu, 17 Mar 2022 15:07:43 +0000 (11:07 -0400)
commitd83540235e315be4c12ced8cbccd79f81e10b7bd
tree3c20437e5f31c066bcaa7bfd1eac1ef9b5f043e5
parentb46ac1b762de20f0084fd1e3658fb795cec0eebc
rgwlc: avoid front() on empty lc entry vector

Conveniently, this arose after removing all lifecycle shards from
RADOS, proving it could be done safely.

A restart is currently needed to recognize new lifecycle shards,
if rgw_gc_max_objs also changed.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_lc.cc