From 9a9e98fb77aed99b849852dd96ab07de096df0b7 Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Mon, 3 Oct 2022 15:46:16 +0200 Subject: [PATCH] Add a TODO about the index creation --- index-scheduler/src/batch.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index-scheduler/src/batch.rs b/index-scheduler/src/batch.rs index e20f93861..58c48f2ec 100644 --- a/index-scheduler/src/batch.rs +++ b/index-scheduler/src/batch.rs @@ -388,6 +388,8 @@ impl IndexScheduler { | IndexOperation::Settings { ref index_uid, .. } | IndexOperation::DocumentClearAndSetting { 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 let mut wtxn = self.env.write_txn()?; let index = self.index_mapper.create_index(&mut wtxn, index_uid)?;