]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/iam: RGWRoleMetadataHandler creates with exclusive=false
authorCasey Bodley <cbodley@redhat.com>
Sat, 17 Feb 2024 22:58:11 +0000 (17:58 -0500)
committerCasey Bodley <cbodley@redhat.com>
Fri, 12 Apr 2024 19:34:29 +0000 (15:34 -0400)
metadata sync needs to be able to overwrite existing role metadata

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 1c3f201af21b526b1295d57bf344bf1b0a73c257)

src/rgw/rgw_role.cc

index 9520a7ff7467e86513d37fe01fe9f2e154e56051..bf9fb5d96f214b3d53238454334e7803bb924d27 100644 (file)
@@ -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);
     }