From 49fa8f0c2b8a8122b1eacdf7120c3c983b157bb9 Mon Sep 17 00:00:00 2001 From: Pritha Srivastava Date: Fri, 5 Apr 2024 10:36:42 +0530 Subject: [PATCH] rgw/dbstore: correcting merge_and_store_attrs to store attrs in place of new_attrs. Signed-off-by: Pritha Srivastava (cherry picked from commit 5c7d47af5577389d00fc81e455669328ba7ac224) --- src/rgw/rgw_sal_dbstore.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_sal_dbstore.cc b/src/rgw/rgw_sal_dbstore.cc index ca1b3f33396..10867d3e288 100644 --- a/src/rgw/rgw_sal_dbstore.cc +++ b/src/rgw/rgw_sal_dbstore.cc @@ -368,7 +368,7 @@ namespace rgw::sal { /* XXX: handle has_instance_obj like in set_bucket_instance_attrs() */ - ret = store->getDB()->update_bucket(dpp, "attrs", info, false, nullptr, &new_attrs, nullptr, &get_info().objv_tracker); + ret = store->getDB()->update_bucket(dpp, "attrs", info, false, nullptr, &attrs, nullptr, &get_info().objv_tracker); return ret; } -- 2.47.3