Throw the error if we can't register the tasks in the store

This commit is contained in:
Kerollmops 2022-10-19 11:31:08 +02:00 committed by Clément Renault
parent 6e904d0997
commit d21651c968
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -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