]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: auto-clean reshard queue entries for non-existent buckets 33300/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Fri, 1 Nov 2019 18:17:53 +0000 (14:17 -0400)
committerNathan Cutler <ncutler@suse.com>
Fri, 14 Feb 2020 09:30:58 +0000 (10:30 +0100)
commit06f227a972950542f4ad1e8548373699907c83e1
tree5d270bbe6ee6221e8b58a2485cf13d70d36f3b4c
parentcb8591cc400f2786f9101b089a932d3a6d980aa7
rgw: auto-clean reshard queue entries for non-existent buckets

It is possible for a bucket to be added to the reshard queue and then
to be removed before its entry in the reshard queue is processed. When
this is now encountered, processing of the reshard queue errors out.

This fix recognizes when the reshard queue entry refers to a
non-existent bucket and remove the entry from the reshard queue,
allowing processing of the queue to continue.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit 304ad8803292e92911e86b84c39a6c2ff0d0121b)

Conflicts:
src/rgw/rgw_reshard.cc
- omitted cosmetic change in get_bucket_info arg list
src/rgw/rgw_reshard.cc