mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-05 20:26:31 +00:00
Fix bug
This commit is contained in:
@ -562,7 +562,9 @@ impl IndexScheduler {
|
||||
current -= &to_remove;
|
||||
|
||||
if current.is_empty() {
|
||||
delete_range_start = Some(timestamp);
|
||||
if delete_range_start.is_none() {
|
||||
delete_range_start = Some(timestamp);
|
||||
}
|
||||
} else {
|
||||
// We could close the deletion range but it's not necessary because the new value will get reinserted anyway
|
||||
to_put.insert(timestamp, current);
|
||||
@ -608,7 +610,9 @@ impl IndexScheduler {
|
||||
current -= to_remove;
|
||||
|
||||
if current.is_empty() {
|
||||
delete_range_start = Some(timestamp);
|
||||
if delete_range_start.is_none() {
|
||||
delete_range_start = Some(timestamp);
|
||||
}
|
||||
} else {
|
||||
// We could close the deletion range but it's not necessary because the new value will get reinserted anyway
|
||||
to_put.insert(timestamp, current);
|
||||
|
Reference in New Issue
Block a user