diff options
author | Alex Auvolat <alex@adnab.me> | 2022-01-03 18:03:12 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-01-04 12:52:46 +0100 |
commit | ba7f268b990cd17c5d20bf9e0eb6ff77d30fe845 (patch) | |
tree | 96cf583c618ab778130b4923e05d62bfb76dd224 /src/model/helper | |
parent | de37658b94d6ac54721e18316dd8dddf50589afb (diff) | |
download | garage-ba7f268b990cd17c5d20bf9e0eb6ff77d30fe845.tar.gz garage-ba7f268b990cd17c5d20bf9e0eb6ff77d30fe845.zip |
Rename and change query filters
Diffstat (limited to 'src/model/helper')
-rw-r--r-- | src/model/helper/bucket.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/model/helper/bucket.rs b/src/model/helper/bucket.rs index bb4b5b24..8bc54b3f 100644 --- a/src/model/helper/bucket.rs +++ b/src/model/helper/bucket.rs @@ -116,12 +116,11 @@ impl<'a> BucketHelper<'a> { .get_range( &EmptyKey, None, - Some(KeyFilter::Matches(pattern.to_string())), + Some(KeyFilter::MatchesAndNotDeleted(pattern.to_string())), 10, ) .await? .into_iter() - .filter(|k| !k.state.is_deleted()) .collect::<Vec<_>>(); if candidates.len() != 1 { Err(Error::BadRequest(format!( |