From 75597a1820ff41543ded95a22308eabf1f9c8505 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Tue, 22 Feb 2022 18:09:37 +0100 Subject: Disable UploadPartCopy min size test --- src/api/s3_copy.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src') diff --git a/src/api/s3_copy.rs b/src/api/s3_copy.rs index 2d050ff6..6b95fe24 100644 --- a/src/api/s3_copy.rs +++ b/src/api/s3_copy.rs @@ -300,12 +300,7 @@ pub async fn handle_upload_part_copy( current_offset = block_end; } - if size_to_copy < 1024 * 1024 { - return Err(Error::BadRequest(format!( - "Not enough data to copy: {} bytes (minimum: 1MB)", - size_to_copy - ))); - } + trace!("UploadPartCopy will copy {} bytes", size_to_copy); // Now, actually copy the blocks let mut md5hasher = Md5::new(); -- cgit v1.2.3