diff options
author | Alex Auvolat <alex@adnab.me> | 2020-04-24 18:47:11 +0000 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-04-24 18:47:11 +0000 |
commit | 91b2d1fcc11c181b1b69db9157188ec39768b5ba (patch) | |
tree | e35f7d9309a6ad2b9e7072cdd11b9a9d87e3e932 /src/core | |
parent | f2e05986c4d8cdf4abfde92e51e36f456e276ccd (diff) | |
download | garage-91b2d1fcc11c181b1b69db9157188ec39768b5ba.tar.gz garage-91b2d1fcc11c181b1b69db9157188ec39768b5ba.zip |
Some basic S3 functionnality
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/object_table.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/object_table.rs b/src/core/object_table.rs index 1fe2b3d4..e4c78524 100644 --- a/src/core/object_table.rs +++ b/src/core/object_table.rs @@ -158,8 +158,10 @@ impl TableSchema for ObjectTable { Ok(()) } - fn matches_filter(_entry: &Self::E, _filter: &Self::Filter) -> bool { - // TODO - true + fn matches_filter(entry: &Self::E, _filter: &Self::Filter) -> bool { + entry + .versions + .iter() + .any(|x| x.is_complete && x.data != ObjectVersionData::DeleteMarker) } } |