aboutsummaryrefslogtreecommitdiff
path: root/src/api/s3/copy.rs
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2024-02-26 17:52:45 +0000
committerAlex <alex@adnab.me>2024-02-26 17:52:45 +0000
commit911a83ea7d06143c5a9621f88020ab6c0850ba54 (patch)
tree26caedf5ef22e6b299d1e2921d7ef854d5d132d6 /src/api/s3/copy.rs
parent17b55205aa666e78b73d93754574aca83a12193a (diff)
parentb76c0c102ee07758ecf8ae4dfeef0a9a095c4136 (diff)
downloadgarage-911a83ea7d06143c5a9621f88020ab6c0850ba54.tar.gz
garage-911a83ea7d06143c5a9621f88020ab6c0850ba54.zip
Merge pull request 'rewrite read_and_put_block as a series of steps with channels' (#734) from refactor-put into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/734
Diffstat (limited to 'src/api/s3/copy.rs')
-rw-r--r--src/api/s3/copy.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/api/s3/copy.rs b/src/api/s3/copy.rs
index 7eb1fe60..880ce5f4 100644
--- a/src/api/s3/copy.rs
+++ b/src/api/s3/copy.rs
@@ -387,7 +387,10 @@ pub async fn handle_upload_part_copy(
// we need to insert that data as a new block.
async move {
if must_upload {
- garage2.block_manager.rpc_put_block(final_hash, data).await
+ garage2
+ .block_manager
+ .rpc_put_block(final_hash, data, None)
+ .await
} else {
Ok(())
}