Disable UploadPartCopy min size test
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
Quentin 2022-02-22 18:09:37 +01:00
parent f6f8b7f1ad
commit 75597a1820

View file

@ -300,12 +300,7 @@ pub async fn handle_upload_part_copy(
current_offset = block_end; current_offset = block_end;
} }
if size_to_copy < 1024 * 1024 { trace!("UploadPartCopy will copy {} bytes", size_to_copy);
return Err(Error::BadRequest(format!(
"Not enough data to copy: {} bytes (minimum: 1MB)",
size_to_copy
)));
}
// Now, actually copy the blocks // Now, actually copy the blocks
let mut md5hasher = Md5::new(); let mut md5hasher = Md5::new();