update reviewer change

This commit is contained in:
Irevoire 2022-10-26 14:19:56 +02:00 committed by Clément Renault
parent 64e55b4db9
commit 4e1b6b514e
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
3 changed files with 19 additions and 18 deletions

View file

@ -774,9 +774,8 @@ impl IndexScheduler {
/// Create a new index without any associated task.
pub fn create_raw_index(&self, name: &str) -> Result<Index> {
let mut wtxn = self.env.write_txn()?;
let index = self.index_mapper.create_index(&mut wtxn, name)?;
wtxn.commit()?;
let wtxn = self.env.write_txn()?;
let index = self.index_mapper.create_index(wtxn, name)?;
Ok(index)
}