]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: s3website doesn't prefetch for web_dir() check
authorCasey Bodley <cbodley@redhat.com>
Fri, 22 Sep 2023 19:27:38 +0000 (15:27 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 22 Sep 2023 19:27:40 +0000 (15:27 -0400)
this function only needs to check for existence of the given path.
the sal::Object is destroyed before the function returns, so it's
wasteful to prefetch its data

Fixes: https://tracker.ceph.com/issues/62938
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_rest_s3.cc

index edab12ec4275b71a8ba9f95c7a46b467ab26b1b9..927e03ab0edf45088bd62e002e5b44e954dc9f77 100644 (file)
@@ -5282,7 +5282,6 @@ bool RGWHandler_REST_S3Website::web_dir() const {
   std::unique_ptr<rgw::sal::Object> obj = s->bucket->get_object(rgw_obj_key(subdir_name));
 
   obj->set_atomic();
-  obj->set_prefetch_data();
 
   RGWObjState* state = nullptr;
   if (obj->get_obj_state(s, &state, s->yield) < 0) {