]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: return success on existing bucket 36978/head
authorCasey Bodley <cbodley@redhat.com>
Fri, 11 Sep 2020 19:39:30 +0000 (15:39 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 11 Sep 2020 19:54:33 +0000 (15:54 -0400)
commit1d651538854671ddac1d9a1762ad89b9fdbb61c3
tree0a0c5a9275f21bae666099a93ccf928141cef366
parent218932a9a87c5d1f2559aaa7bf7928cd7a243194
rgw: return success on existing bucket

RGWRadosStore::create_bucket() only returns EEXIST errors when a
conflict is detected and the recreation should fail. in other cases,
return success and use the 'bool *existed' flag to notify the caller of
its prior existence

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_sal_rados.cc