diff options
author | Alex Auvolat <alex@adnab.me> | 2023-10-20 13:55:34 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-10-20 13:56:35 +0200 |
commit | c82d91c6bccf307186332b6c5c6fc0b128b1b2b1 (patch) | |
tree | 5059701470a55c785d12306574b8041f90d9b59b /src/api/s3/multipart.rs | |
parent | 8686cfd0b10a49048021102a08d637b0d4fe6a91 (diff) | |
download | garage-c82d91c6bccf307186332b6c5c6fc0b128b1b2b1.tar.gz garage-c82d91c6bccf307186332b6c5c6fc0b128b1b2b1.zip |
DeleteObject: always insert a deletion marker with a bigger timestamp than everything beforeincreasing-timestamps
Diffstat (limited to 'src/api/s3/multipart.rs')
-rw-r--r-- | src/api/s3/multipart.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/api/s3/multipart.rs b/src/api/s3/multipart.rs index aaf271ab..6b786318 100644 --- a/src/api/s3/multipart.rs +++ b/src/api/s3/multipart.rs @@ -9,7 +9,6 @@ use md5::{Digest as Md5Digest, Md5}; use garage_table::*; use garage_util::async_hash::*; use garage_util::data::*; -use garage_util::time::*; use garage_model::bucket_table::Bucket; use garage_model::garage::Garage; @@ -35,7 +34,7 @@ pub async fn handle_create_multipart_upload( let existing_object = garage.object_table.get(&bucket_id, &key).await?; let upload_id = gen_uuid(); - let timestamp = next_timestamp(&existing_object); + let timestamp = next_timestamp(existing_object.as_ref()); let headers = get_headers(req.headers())?; |