diff options
author | Alex Auvolat <alex@adnab.me> | 2023-06-13 10:48:22 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-06-13 10:48:22 +0200 |
commit | 942c1f1bfe138cbc4e49540cede852e4d462590e (patch) | |
tree | 1c95238bb519e7f20cd7f749adf864544993e507 /src/model/s3/object_table.rs | |
parent | 0a06fda0da35f4018c39bf6aec90e55bdf42d241 (diff) | |
download | garage-942c1f1bfe138cbc4e49540cede852e4d462590e.tar.gz garage-942c1f1bfe138cbc4e49540cede852e4d462590e.zip |
multipart uploads: save timestamp
Diffstat (limited to 'src/model/s3/object_table.rs')
-rw-r--r-- | src/model/s3/object_table.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/model/s3/object_table.rs b/src/model/s3/object_table.rs index db5ccf96..ebea04bd 100644 --- a/src/model/s3/object_table.rs +++ b/src/model/s3/object_table.rs @@ -444,8 +444,13 @@ impl TableSchema for ObjectTable { ), }; if delete_mpu { - let deleted_mpu = - MultipartUpload::new(v.uuid, old_v.bucket_id, old_v.key.clone(), true); + let deleted_mpu = MultipartUpload::new( + v.uuid, + v.timestamp, + old_v.bucket_id, + old_v.key.clone(), + true, + ); let res = self.mpu_table.queue_insert(tx, &deleted_mpu); if let Err(e) = db::unabort(res)? { error!( |