diff options
author | Alex Auvolat <alex@adnab.me> | 2022-07-18 17:18:47 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-07-29 12:24:44 +0200 |
commit | 1b2e1296eb99630e969e585ede0424072adc2d0c (patch) | |
tree | e16b953e1f53e57c6efd11e688e955fa36cbb186 /src/api/s3/copy.rs | |
parent | a184f0d0b5f1d84524f7ba7302a4919567acec56 (diff) | |
download | garage-1b2e1296eb99630e969e585ede0424072adc2d0c.tar.gz garage-1b2e1296eb99630e969e585ede0424072adc2d0c.zip |
Compute hashes on dedicated threads
Diffstat (limited to 'src/api/s3/copy.rs')
-rw-r--r-- | src/api/s3/copy.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/api/s3/copy.rs b/src/api/s3/copy.rs index 0fc16993..4415a037 100644 --- a/src/api/s3/copy.rs +++ b/src/api/s3/copy.rs @@ -365,7 +365,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.into()) + .await } else { Ok(()) } |