]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: auto-clean reshard queue entries for non-existent buckets 32055/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Fri, 1 Nov 2019 18:17:53 +0000 (14:17 -0400)
committerNathan Cutler <ncutler@suse.com>
Fri, 6 Dec 2019 11:56:02 +0000 (12:56 +0100)
commit66d63176a80f0f5a86427f5effdef345fcea8110
tree007d07d99ef7fd21fceaad3b7480ad602874b3a0
parenta67a2701414c74b705587a959f029576ef997aa6
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
- omit white-space change in get_bucket_info method call
src/rgw/rgw_reshard.cc