From: Casey Bodley Date: Fri, 22 Sep 2023 19:27:38 +0000 (-0400) Subject: rgw: s3website doesn't prefetch for web_dir() check X-Git-Tag: v18.2.1~185^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ffa971569c5de8acfb4e5faac470ba8869590900;p=ceph.git rgw: s3website doesn't prefetch for web_dir() check 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 (cherry picked from commit 7ba05a29163e1a81fb449e3231200e0bf55c1200) --- diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index d16bf7f4c4a3..6efe02e25642 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -5279,7 +5279,6 @@ bool RGWHandler_REST_S3Website::web_dir() const { std::unique_ptr 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) {