mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 06:44:27 +01:00
Throw the error if we can't register the tasks in the store
This commit is contained in:
parent
6e904d0997
commit
d21651c968
@ -438,12 +438,9 @@ impl IndexScheduler {
|
|||||||
(bitmap.insert(task.uid));
|
(bitmap.insert(task.uid));
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
match wtxn.commit() {
|
if let Err(e) = wtxn.commit() {
|
||||||
Ok(()) => (),
|
self.delete_persisted_task_data(&task)?;
|
||||||
_e @ Err(_) => {
|
return Err(e.into());
|
||||||
self.delete_persisted_task_data(&task)?;
|
|
||||||
// _e?;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the registered task is a task cancelation
|
// If the registered task is a task cancelation
|
||||||
|
Loading…
Reference in New Issue
Block a user