From 044cd2c3dd2839753ee364b0a17a0adcb2215657 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Tue, 14 Jan 2025 13:57:06 -0500 Subject: rgw: RGWRados::get_olh() needs to use the correct attr Fixes: https://tracker.ceph.com/issues/69536 Signed-off-by: Yehuda Sadeh --- src/rgw/driver/rados/rgw_rados.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rgw') diff --git a/src/rgw/driver/rados/rgw_rados.cc b/src/rgw/driver/rados/rgw_rados.cc index a133b54dc59..2ee5f545326 100644 --- a/src/rgw/driver/rados/rgw_rados.cc +++ b/src/rgw/driver/rados/rgw_rados.cc @@ -8904,7 +8904,7 @@ int RGWRados::get_olh(const DoutPrefixProvider *dpp, RGWBucketInfo& bucket_info, return r; } - auto iter = attrset.find(RGW_ATTR_OLH_VER); + auto iter = attrset.find(RGW_ATTR_OLH_INFO); if (iter == attrset.end()) { /* not an olh */ return -EINVAL; } -- cgit v1.2.3