mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-29 16:45:30 +08: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(()) => (),
|
|
||||||
_e @ Err(_) => {
|
|
||||||
self.delete_persisted_task_data(&task)?;
|
self.delete_persisted_task_data(&task)?;
|
||||||
// _e?;
|
return Err(e.into());
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the registered task is a task cancelation
|
// If the registered task is a task cancelation
|
||||||
|
Loading…
Reference in New Issue
Block a user