From: Casey Bodley Date: Sat, 17 Feb 2024 22:58:11 +0000 (-0500) Subject: rgw/iam: RGWRoleMetadataHandler creates with exclusive=false X-Git-Tag: v19.1.0~99^2~57 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c74597d499d6312e8dcb9561b32e5037cd5932f3;p=ceph.git rgw/iam: RGWRoleMetadataHandler creates with exclusive=false metadata sync needs to be able to overwrite existing role metadata Signed-off-by: Casey Bodley (cherry picked from commit 1c3f201af21b526b1295d57bf344bf1b0a73c257) --- diff --git a/src/rgw/rgw_role.cc b/src/rgw/rgw_role.cc index 9520a7ff7467..bf9fb5d96f21 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 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); }