fix the whole batchKind thingy

This commit is contained in:
Tamo 2022-09-09 01:09:50 +02:00 committed by Clément Renault
parent af0f5d6c0c
commit 6b9689a1c0
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
4 changed files with 292 additions and 5 deletions

View file

@ -80,6 +80,10 @@ pub struct IndexScheduler {
}
impl IndexScheduler {
pub fn create_index(&self, rwtxn: &mut RwTxn, name: &str) -> Result<Index> {
todo!()
}
/// Return the index corresponding to the name. If it wasn't opened before
/// it'll be opened. But if it doesn't exist on disk it'll throw an
/// `IndexNotFound` error.
@ -226,6 +230,9 @@ impl IndexScheduler {
let res = self.process_batch(&mut wtxn, &mut batch);
// TODO: TAMO: do this later
// must delete the file on disk
// in case of error, must update the tasks with the error
// in case of « success » we must update all the task on disk
// self.handle_batch_result(res);
match wtxn.commit() {