aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-02-22 18:09:37 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-02-22 18:20:52 +0100
commit75597a1820ff41543ded95a22308eabf1f9c8505 (patch)
tree11b2c5fc643d6b98329fd9e67bb0ecd1320fe486 /src
parentf6f8b7f1ad865f629bdfd93ec1e28a526a5eab37 (diff)
downloadgarage-test/disable-partcopy-check.tar.gz
garage-test/disable-partcopy-check.zip
Disable UploadPartCopy min size testtest/disable-partcopy-check
Diffstat (limited to 'src')
-rw-r--r--src/api/s3_copy.rs7
1 files changed, 1 insertions, 6 deletions
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();