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: v19.0.0~367^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=7ba05a29163e1a81fb449e3231200e0bf55c1200;p=ceph-ci.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 --- diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index edab12ec427..927e03ab0ed 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -5282,7 +5282,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) {