diff --git a/src/object_store/src/object/s3.rs b/src/object_store/src/object/s3.rs index 81aa44c1f8db8..caf2b6fe1a318 100644 --- a/src/object_store/src/object/s3.rs +++ b/src/object_store/src/object/s3.rs @@ -1013,8 +1013,8 @@ impl Stream for S3ObjectIter { .list_objects_v2() .bucket(&self.bucket) .prefix(&self.prefix); - if cfg!(not(madsim)) { - if let Some(start_after) = self.start_after.as_ref() { + if let Some(start_after) = self.start_after.as_ref() { + if cfg!(not(madsim)) { request = request.start_after(start_after); } }