mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-07-28 08:48:56 +00:00
K2V: Fix end parameter and add tests (fix #305)
This commit is contained in:
@@ -74,7 +74,11 @@ where
|
||||
}
|
||||
}
|
||||
if let Some(e) = end {
|
||||
if entry.sort_key() == e {
|
||||
let is_finished = match enumeration_order {
|
||||
EnumerationOrder::Forward => entry.sort_key() >= e,
|
||||
EnumerationOrder::Reverse => entry.sort_key() <= e,
|
||||
};
|
||||
if is_finished {
|
||||
return Ok((entries, false, None));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user