summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_role.cc
diff options
context:
space:
mode:
authorCasey Bodley <cbodley@redhat.com>2024-02-17 23:58:11 +0100
committerCasey Bodley <cbodley@redhat.com>2024-04-10 19:09:16 +0200
commit1c3f201af21b526b1295d57bf344bf1b0a73c257 (patch)
treed98c320a610a3cba1f33ed526ae838d85b939686 /src/rgw/rgw_role.cc
parentrgw/iam: only RGWDeleteRole returns ERR_DELETE_CONFLICT (diff)
downloadceph-1c3f201af21b526b1295d57bf344bf1b0a73c257.tar.xz
ceph-1c3f201af21b526b1295d57bf344bf1b0a73c257.zip
rgw/iam: RGWRoleMetadataHandler creates with exclusive=false
metadata sync needs to be able to overwrite existing role metadata Signed-off-by: Casey Bodley <cbodley@redhat.com>
Diffstat (limited to 'src/rgw/rgw_role.cc')
-rw-r--r--src/rgw/rgw_role.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rgw/rgw_role.cc b/src/rgw/rgw_role.cc
index 9520a7ff746..bf9fb5d96f2 100644
--- a/src/rgw/rgw_role.cc
+++ b/src/rgw/rgw_role.cc
@@ -431,7 +431,8 @@ public:
auto* driver = mdo->get_driver();
info.mtime = mtime;
std::unique_ptr<rgw::sal::RGWRole> role = driver->get_role(info);
- int ret = role->create(dpp, true, info.id, y);
+ constexpr bool exclusive = false;
+ int ret = role->create(dpp, exclusive, info.id, y);
if (ret == -EEXIST) {
ret = role->update(dpp, y);
}