remove size limitation in copy #280

Merged
lx merged 2 commits from withinboredom/garage:main into main 2022-04-19 10:49:44 +00:00
Showing only changes of commit 2616cf399e - Show all commits

View file

@ -300,13 +300,6 @@ 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
)));
}
// Now, actually copy the blocks
let mut md5hasher = Md5::new();