diff options
author | Suyash Dongre <suyashd999@gmail.com> | 2024-06-18 19:37:29 +0200 |
---|---|---|
committer | Suyash Dongre <suyashd999@gmail.com> | 2024-06-27 14:00:08 +0200 |
commit | 4e19b516c857711a0d9a98415000782be5bb0f8f (patch) | |
tree | 32f73c218f8831779867fa1a2d4bdf96a81fe83f /src/rgw/driver/rados | |
parent | Merge pull request #57626 from AliMasarweh/wip-alimasa-bn-admin-cli (diff) | |
download | ceph-4e19b516c857711a0d9a98415000782be5bb0f8f.tar.xz ceph-4e19b516c857711a0d9a98415000782be5bb0f8f.zip |
'keys' used after being moved.
Fixes: https://tracker.ceph.com/issues/66553
Signed-off-by: Suyash Dongre <suyashd999@gmail.com>
Diffstat (limited to 'src/rgw/driver/rados')
-rw-r--r-- | src/rgw/driver/rados/rgw_user.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rgw/driver/rados/rgw_user.cc b/src/rgw/driver/rados/rgw_user.cc index e154813aac1..7a8161e5741 100644 --- a/src/rgw/driver/rados/rgw_user.cc +++ b/src/rgw/driver/rados/rgw_user.cc @@ -1552,6 +1552,7 @@ static void rename_swift_keys(const rgw_user& user, user.to_str(user_id); auto modify_keys = std::move(keys); + keys = {}; for ([[maybe_unused]] auto& [k, key] : modify_keys) { std::string id = user_id + ":" + key.subuser; key.id = id; |