Skip to content

Commit 7ba05a2

Browse files
committed
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 <[email protected]>
1 parent 9fedc1e commit 7ba05a2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/rgw/rgw_rest_s3.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5282,7 +5282,6 @@ bool RGWHandler_REST_S3Website::web_dir() const {
52825282
std::unique_ptr<rgw::sal::Object> obj = s->bucket->get_object(rgw_obj_key(subdir_name));
52835283

52845284
obj->set_atomic();
5285-
obj->set_prefetch_data();
52865285

52875286
RGWObjState* state = nullptr;
52885287
if (obj->get_obj_state(s, &state, s->yield) < 0) {

0 commit comments

Comments
 (0)