diff options
author | Alex Auvolat <alex@adnab.me> | 2020-04-26 18:55:13 +0000 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-04-26 18:55:13 +0000 |
commit | 9cb870f950504b142e2954d2e1eb76929aaf689f (patch) | |
tree | f63d8039ec33644f061add4dcf046717e0be2a75 /src/api/s3_get.rs | |
parent | ea7e4748edb32bcbcf737dcf35322eb6496b3439 (diff) | |
download | garage-9cb870f950504b142e2954d2e1eb76929aaf689f.tar.gz garage-9cb870f950504b142e2954d2e1eb76929aaf689f.zip |
Prepare for multipart uploads
Diffstat (limited to 'src/api/s3_get.rs')
-rw-r--r-- | src/api/s3_get.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/s3_get.rs b/src/api/s3_get.rs index b933f549..dbdac03c 100644 --- a/src/api/s3_get.rs +++ b/src/api/s3_get.rs @@ -43,7 +43,7 @@ pub async fn handle_head( .versions() .iter() .rev() - .filter(|v| v.is_complete && v.data != ObjectVersionData::DeleteMarker) + .filter(|v| v.is_data()) .next() { Some(v) => v, @@ -76,7 +76,7 @@ pub async fn handle_get( .versions() .iter() .rev() - .filter(|v| v.is_complete) + .filter(|v| v.is_complete()) .next() { Some(v) => v, |