aboutsummaryrefslogtreecommitdiff
path: root/src/core/object_table.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-04-24 18:47:11 +0000
committerAlex Auvolat <alex@adnab.me>2020-04-24 18:47:11 +0000
commit91b2d1fcc11c181b1b69db9157188ec39768b5ba (patch)
treee35f7d9309a6ad2b9e7072cdd11b9a9d87e3e932 /src/core/object_table.rs
parentf2e05986c4d8cdf4abfde92e51e36f456e276ccd (diff)
downloadgarage-91b2d1fcc11c181b1b69db9157188ec39768b5ba.tar.gz
garage-91b2d1fcc11c181b1b69db9157188ec39768b5ba.zip
Some basic S3 functionnality
Diffstat (limited to 'src/core/object_table.rs')
-rw-r--r--src/core/object_table.rs8
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)
}
}