]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: reshard add: fail correctly on a non existant bucket 25088/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Mon, 15 Oct 2018 20:00:33 +0000 (22:00 +0200)
committerJonathan Brielmaier <jbrielmaier@suse.de>
Wed, 14 Nov 2018 11:56:17 +0000 (12:56 +0100)
commit0338d7b6fe7172bda1aa92b9c79b32cf0a6fbc78
tree1b4adaab541c5ac0035a4b3149080b4aed75a418
parent28f9647491af347ed29c0fc5e5965cd8be97f5e3
rgw: reshard add: fail correctly on a non existant bucket

Currently the method that validates the reshard params does not fail correctly
in case of a non existant bucket causing reshard add to print an error message
but add the non existant bucket to the queue anyway. This will later be a cause
of EBUSY errors as this entry on the logshard  can never be processed.

Fixes: http://tracker.ceph.com/issues/36449
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit c564b348a24edf2804a8f5f0d034f388be1c5c5f)
Signed-off-by: Jonathan Brielmaier <jbrielmaier@suse.de>
src/rgw/rgw_admin.cc