]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
RGW Zipper - API Cleanups
authorDaniel Gryniewicz <dang@redhat.com>
Thu, 21 Oct 2021 14:54:00 +0000 (10:54 -0400)
committerDaniel Gryniewicz <dang@redhat.com>
Tue, 9 Nov 2021 13:36:15 +0000 (08:36 -0500)
commitc182f7c6c56af2e8fa6812185c62b717acb2fbdc
tree466bfd12ad0a160f4e6cedd9cd0a6337f5866125
parent4f56c918e803d1a8cf10403b42deb188ee4ecf00
RGW Zipper - API Cleanups

During the documentation pass for the Zipper API, a number of cleanups
were found: APIs that should be slightly different, or that were unused
entirely.  This is a rollup commit of all those cleanups.

- move get_multipart_upload() to Bucket
- remove unused defer_gc
- move create_bucket() into User
- rename get_bucket_info() to load_bucket() to match load_user()
- Remove read_bucket_stats()
  The codepaths using read_bucket_stats() used CLS data types, and the
  function is confusingly named.  Load the ent in load_bucket(), and use
  an alternative data structure to get size stats for the bucket.
- rename get_bucket_stats to read_stats
- Remove remove_metadata() from API
- remove copy_obj_data() from API
- rename get_obj_layout to dump_obj_layout
- use SAL range_to_ofs

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
17 files changed:
src/rgw/rgw_bucket.cc
src/rgw/rgw_lc.cc
src/rgw/rgw_op.cc
src/rgw/rgw_op.h
src/rgw/rgw_quota.cc
src/rgw/rgw_rados.cc
src/rgw/rgw_rest.cc
src/rgw/rgw_rest_log.cc
src/rgw/rgw_rest_s3.cc
src/rgw/rgw_sal.h
src/rgw/rgw_sal_dbstore.cc
src/rgw/rgw_sal_dbstore.h
src/rgw/rgw_sal_rados.cc
src/rgw/rgw_sal_rados.h
src/rgw/rgw_user.cc
src/rgw/rgw_user.h
src/test/rgw/test_rgw_lua.cc