]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Mon, 13 Apr 2026 09:38:25 +0000 (10:38 +0100)
commit4c295ad3a65e16bbe4d754eee26e98eb5da7d0e2
treedc33b1c560df50109c95e72199c2611f1aa57181
parent49423079f16c5560913989d9e292ba658a1f19b5
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