]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: migrate to using non-deprecated class call functions
authorAlex Ainscow <aainscow@uk.ibm.com>
Mon, 24 Nov 2025 21:08:08 +0000 (21:08 +0000)
committerAlex Ainscow <aainscow@uk.ibm.com>
Wed, 18 Mar 2026 13:28:45 +0000 (13:28 +0000)
commit7aa3381f5da2d1ec951aef6cb3d7c118d2a10c77
tree10b4a3b4e7faba6a7c17d1771ed0a5f7e3ac234b
parent0b447f77082715a04fcd3b2cd3ac83d626325d6d
rgw: migrate to using non-deprecated class call functions

Update the Rados Gateway driver to utilize the new trait-based class
method interface. This replaces legacy string-based exec() calls with
the typesafe template-based alternatives.

Key Changes:

Updated reset_stats in buckets.cc to use cls::user::method::reset_user_stats2.

Updated RGWRadosBILogTrimCR in rgw_cr_rados.cc to use cls::rgw::method::bi_log_trim.

This change ensures that RGW operations are correctly categorized as
reads or writes at compile-time, aligning with the broader effort to
improve RADOS class method safety and OSD routing efficiency.

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
src/rgw/driver/rados/buckets.cc
src/rgw/driver/rados/rgw_cr_rados.cc