]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: remove prefix & delim params for bucket removal & mp upload abort 43975/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Tue, 16 Nov 2021 23:06:58 +0000 (18:06 -0500)
committerJ. Eric Ivancich <ivancich@redhat.com>
Wed, 17 Nov 2021 18:11:30 +0000 (13:11 -0500)
commitb9223477ace38eef8a5efda33cd98e15e965bb55
treea455d52f5bc918918d0c5088c651afa353c2ca0d
parent29c61e3a22d4d50d3eb7a415d52f6439dbc4126e
rgw: remove prefix & delim params for bucket removal & mp upload abort

The calls to remove a bucket had parameters to specify a prefix and
delimiter, which does not make sense. This was precipitated due to some
existing Swift protocol logic, but buckets are removed irrespective of
prefix and delimiter. So the functions and calls are adjusted to
remove those parameters. Additionally, those same parameters were
removed for aborting incomplete multipart uploads.

Additionally a bug is fixed in which during bucket removal, multipart
uploads were only removed if the prefix was non-empty.

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

Conflicts:
        src/rgw/rgw_sal_rados.cc
        src/rgw/rgw_sal.h
        src/rgw/rgw_sal_rados.h
  - Alterations due to Zipper 7 code refactoring
        src/rgw/rgw_sal_dbstore.cc
        src/rgw/rgw_sal_dbstore.h
  - Did not exist before Zipper 7 code refactoring
src/rgw/rgw_bucket.cc
src/rgw/rgw_multi.cc
src/rgw/rgw_multi.h
src/rgw/rgw_op.cc
src/rgw/rgw_rest_bucket.cc
src/rgw/rgw_sal.h
src/rgw/rgw_sal_rados.cc
src/rgw/rgw_sal_rados.h
src/rgw/rgw_user.cc