From 91b2d1fcc11c181b1b69db9157188ec39768b5ba Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 24 Apr 2020 18:47:11 +0000 Subject: Some basic S3 functionnality --- src/core/object_table.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/core/object_table.rs') 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) } } -- cgit v1.2.3