]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: RGWRados::get_olh() needs to use the correct attr
authorYehuda Sadeh <ysadehwe@ibm.com>
Tue, 14 Jan 2025 18:57:06 +0000 (13:57 -0500)
committerYehuda Sadeh <ysadehwe@ibm.com>
Tue, 14 Jan 2025 18:57:06 +0000 (13:57 -0500)
Fixes: https://tracker.ceph.com/issues/69536
Signed-off-by: Yehuda Sadeh <ysadehwe@ibm.com>
src/rgw/driver/rados/rgw_rados.cc

index a133b54dc595f91a61c3c96ca529211285050068..2ee5f545326f2673bbf0170cca1bd17ef4b77db4 100644 (file)
@@ -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;
   }