mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-10 14:46:36 +00:00
Implement the IndexDeletion batch operation
This commit is contained in:
committed by
Clément Renault
parent
4a53cb1c50
commit
88a0ed9736
@ -440,7 +440,13 @@ impl IndexScheduler {
|
||||
|
||||
Ok(vec![task])
|
||||
}
|
||||
Batch::IndexDeletion { index_uid, tasks } => todo!(),
|
||||
Batch::IndexDeletion { index_uid, tasks } => {
|
||||
let wtxn = self.env.write_txn()?;
|
||||
// The write transaction is directly owned and commited here.
|
||||
let index = self.index_mapper.delete_index(wtxn, &index_uid)?;
|
||||
|
||||
todo!("update the tasks and mark them as succeeded");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user