]> git-server-git.apps.pok.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>
Wed, 10 Apr 2024 17:09:16 +0000 (13:09 -0400)
metadata sync needs to be able to overwrite existing role metadata

Signed-off-by: Casey Bodley <cbodley@redhat.com>
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);
     }