]> git.apps.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)
committerSeena Fallah <seenafallah@gmail.com>
Mon, 28 Apr 2025 16:56:06 +0000 (18:56 +0200)
commitc8aca216f7d186e4e8391a284d14948afd414957
tree40b2e11388018fef46426469dd5fecc7b4d15bf4
parent9523e15fb74e09718f5cc9c0bddf2492fc8d8128
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>
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