Add a TODO about the index creation

This commit is contained in:
Kerollmops 2022-10-03 15:46:16 +02:00 committed by Clément Renault
parent 5d21c790ef
commit 9a9e98fb77
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -388,6 +388,8 @@ impl IndexScheduler {
| IndexOperation::Settings { ref index_uid, .. } | IndexOperation::Settings { ref index_uid, .. }
| IndexOperation::DocumentClearAndSetting { ref index_uid, .. } | IndexOperation::DocumentClearAndSetting { ref index_uid, .. }
| IndexOperation::SettingsAndDocumentImport { ref index_uid, .. } => { | IndexOperation::SettingsAndDocumentImport { ref index_uid, .. } => {
// TODO check if the user was allowed to create an index.
// create the index if it doesn't already exist // create the index if it doesn't already exist
let mut wtxn = self.env.write_txn()?; let mut wtxn = self.env.write_txn()?;
let index = self.index_mapper.create_index(&mut wtxn, index_uid)?; let index = self.index_mapper.create_index(&mut wtxn, index_uid)?;