This commit is contained in:
Mubelotix
2025-08-12 16:44:28 +02:00
parent 3b470af54c
commit 84244a74df

View File

@ -562,7 +562,9 @@ impl IndexScheduler {
current -= &to_remove; current -= &to_remove;
if current.is_empty() { if current.is_empty() {
if delete_range_start.is_none() {
delete_range_start = Some(timestamp); delete_range_start = Some(timestamp);
}
} else { } else {
// We could close the deletion range but it's not necessary because the new value will get reinserted anyway // We could close the deletion range but it's not necessary because the new value will get reinserted anyway
to_put.insert(timestamp, current); to_put.insert(timestamp, current);
@ -608,7 +610,9 @@ impl IndexScheduler {
current -= to_remove; current -= to_remove;
if current.is_empty() { if current.is_empty() {
if delete_range_start.is_none() {
delete_range_start = Some(timestamp); delete_range_start = Some(timestamp);
}
} else { } else {
// We could close the deletion range but it's not necessary because the new value will get reinserted anyway // We could close the deletion range but it's not necessary because the new value will get reinserted anyway
to_put.insert(timestamp, current); to_put.insert(timestamp, current);