Skip to content

Commit

Permalink
rgw: s3website doesn't prefetch for web_dir() check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cbodley committed Sep 22, 2023
1 parent 9fedc1e commit 7ba05a2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/rgw/rgw_rest_s3.cc
Expand Up @@ -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) {
Expand Down

0 comments on commit 7ba05a2

Please sign in to comment.