]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: make rgw_sync_pipe_params::user optional
authorSeena Fallah <seenafallah@gmail.com>
Tue, 1 Apr 2025 15:28:10 +0000 (17:28 +0200)
committerCasey Bodley <cbodley@redhat.com>
Tue, 29 Apr 2025 14:22:47 +0000 (10:22 -0400)
commit520ac0185eed1a1dabfacb933eadf3de7de18884
tree15c09083c9c65dc405a49ca4e16df5a9bc5075ab
parente704129b4f5de4991e189c88c77b71851023c826
rgw: make rgw_sync_pipe_params::user optional

In rgw_sync_pipe_params, the mode can be either system or user.
When in system mode, no user is involved, but the current
implementation holds an empty rgw_user, which can cause confusion
in pipe_rules::find_basic_info_without_tags().

With this change, rgw_user is now optional, ensuring that when no
user is involved, it is explicitly nullopt rather than an empty object.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit c8aca216f7d186e4e8391a284d14948afd414957)
src/rgw/driver/rados/rgw_cr_rados.cc
src/rgw/radosgw-admin/radosgw-admin.cc
src/rgw/rgw_sync_policy.cc
src/rgw/rgw_sync_policy.h