mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
Move currently_updating_index
to IndexMapper
This commit is contained in:
parent
5ee1378856
commit
97bb1ff9e2
4 changed files with 20 additions and 17 deletions
|
@ -936,8 +936,8 @@ impl IndexScheduler {
|
|||
};
|
||||
|
||||
// the index operation can take a long time, so save this handle to make it available to the search for the duration of the tick
|
||||
*self.currently_updating_index.write().unwrap() =
|
||||
Some((index_uid.clone(), index.clone()));
|
||||
self.index_mapper
|
||||
.set_currently_updating_index(Some((index_uid.clone(), index.clone())));
|
||||
|
||||
let mut index_wtxn = index.write_txn()?;
|
||||
let tasks = self.apply_index_operation(&mut index_wtxn, &index, op)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue