Move currently_updating_index to IndexMapper

This commit is contained in:
Louis Dureuil 2024-01-09 15:37:27 +01:00
parent 5ee1378856
commit 97bb1ff9e2
No known key found for this signature in database
4 changed files with 20 additions and 17 deletions

View file

@ -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)?;