]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: s3website doesn't prefetch for web_dir() check 53767/head
authorCasey Bodley <cbodley@redhat.com>
Fri, 22 Sep 2023 19:27:38 +0000 (15:27 -0400)
committerCasey Bodley <cbodley@redhat.com>
Mon, 2 Oct 2023 20:16:23 +0000 (16:16 -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>
(cherry picked from commit 7ba05a29163e1a81fb449e3231200e0bf55c1200)

src/rgw/rgw_rest_s3.cc

index d16bf7f4c4a3a436cffb90e449ec5a8054c6bc61..6efe02e25642641926441f7aaeff71684dcded45 100644 (file)
@@ -5279,7 +5279,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) {