mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Apply review suggestions and stop using rtxn.commit
This commit is contained in:
parent
14a44776f6
commit
8514c1c12b
3 changed files with 3 additions and 7 deletions
|
@ -686,8 +686,7 @@ impl IndexScheduler {
|
|||
| IndexOperation::DocumentClear { ref index_uid, .. } => {
|
||||
// only get the index, don't create it
|
||||
let rtxn = self.env.read_txn()?;
|
||||
let r = self.index_mapper.index(&rtxn, index_uid)?;
|
||||
r
|
||||
self.index_mapper.index(&rtxn, index_uid)?
|
||||
}
|
||||
IndexOperation::DocumentImport { ref index_uid, allow_index_creation, .. }
|
||||
| IndexOperation::Settings { ref index_uid, allow_index_creation, .. }
|
||||
|
@ -701,8 +700,7 @@ impl IndexScheduler {
|
|||
index
|
||||
} else {
|
||||
let rtxn = self.env.read_txn()?;
|
||||
let r = self.index_mapper.index(&rtxn, index_uid)?;
|
||||
r
|
||||
self.index_mapper.index(&rtxn, index_uid)?
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue