From c74597d499d6312e8dcb9561b32e5037cd5932f3 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Sat, 17 Feb 2024 17:58:11 -0500 Subject: [PATCH] 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) --- src/rgw/rgw_role.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 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); } -- 2.39.5