mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-06 04:36:32 +00:00
Fix bug
This commit is contained in:
@ -562,7 +562,9 @@ impl IndexScheduler {
|
|||||||
current -= &to_remove;
|
current -= &to_remove;
|
||||||
|
|
||||||
if current.is_empty() {
|
if current.is_empty() {
|
||||||
delete_range_start = Some(timestamp);
|
if delete_range_start.is_none() {
|
||||||
|
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() {
|
||||||
delete_range_start = Some(timestamp);
|
if delete_range_start.is_none() {
|
||||||
|
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);
|
||||||
|
Reference in New Issue
Block a user