]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: reorder rgw_user members for default operator<=>
authorCasey Bodley <cbodley@redhat.com>
Sat, 18 Nov 2023 16:43:58 +0000 (11:43 -0500)
committerCasey Bodley <cbodley@redhat.com>
Thu, 30 Nov 2023 15:40:44 +0000 (10:40 -0500)
commit5791e2222877ad4f2e84c79cc7aa867ee1361976
tree83764040b6154b7382fb61f4d1c8e9f8ec51fc22
parent46aac8e2643ec645dcc2c4114df535a488932942
rgw: reorder rgw_user members for default operator<=>

the default operator<=> does a memberwise comparison the same that
rgw_user::compare() did, except that it compared `ns` before `id`

reorder the rgw_user members so that the default operator<=> can
replace compare() and the related comparison operators

replaces uses of rgw_user::compare() with operator== and !=

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/driver/rados/rgw_user.cc
src/rgw/rgw_acl_s3.cc
src/rgw/rgw_op.cc
src/rgw/rgw_user_types.h
src/test/test_rgw_admin_meta.cc