From 7ba05a29163e1a81fb449e3231200e0bf55c1200 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Fri, 22 Sep 2023 15:27:38 -0400 Subject: [PATCH] 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 --- src/rgw/rgw_rest_s3.cc | 1 - 1 file changed, 1 deletion(-) 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) { -- 2.39.5