]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
RGW: Remove get_obj_state()/set_obj_state from SAL
authorDaniel Gryniewicz <dang@redhat.com>
Thu, 9 May 2024 14:47:28 +0000 (10:47 -0400)
committerDaniel Gryniewicz <dang@fprintf.net>
Tue, 28 May 2024 16:22:03 +0000 (12:22 -0400)
commitbd11f19d59577aa2ee49b6399e68c414c02afc51
tree70e4cab5f442d42a8f3fdb1da61db09f001f035a
parent05cd407fc62db043e96d923e99b9a5e8a0023567
RGW: Remove get_obj_state()/set_obj_state from SAL

RGWObjState is the state for the StoreObject class.  It has historically
been accessible via get_obj_state()/set_obj_state(), but the double
pointer nature of this access has caused multiple bugs, and the
RGWObjState itself is an implementation detail that doesn't need to be
exposed.

Instead, add a load_obj_state() that loads the state from the store, and
use proper getters/setters for the data.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
24 files changed:
src/rgw/driver/d4n/rgw_sal_d4n.cc
src/rgw/driver/daos/rgw_sal_daos.cc
src/rgw/driver/daos/rgw_sal_daos.h
src/rgw/driver/motr/rgw_sal_motr.cc
src/rgw/driver/motr/rgw_sal_motr.h
src/rgw/driver/posix/rgw_sal_posix.cc
src/rgw/driver/posix/rgw_sal_posix.h
src/rgw/driver/rados/rgw_bucket.cc
src/rgw/driver/rados/rgw_cr_rados.cc
src/rgw/driver/rados/rgw_rados.h
src/rgw/driver/rados/rgw_sal_rados.cc
src/rgw/driver/rados/rgw_sal_rados.h
src/rgw/rgw_admin.cc
src/rgw/rgw_lc.cc
src/rgw/rgw_op.cc
src/rgw/rgw_rest_s3.cc
src/rgw/rgw_rest_swift.cc
src/rgw/rgw_sal.cc
src/rgw/rgw_sal.h
src/rgw/rgw_sal_dbstore.cc
src/rgw/rgw_sal_dbstore.h
src/rgw/rgw_sal_filter.cc
src/rgw/rgw_sal_filter.h
src/rgw/rgw_sal_store.h