mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-29 16:24:26 +01:00
Fix typo, remove caching for the change of index
This commit is contained in:
parent
492fc086f0
commit
a2d6dc8571
@ -963,9 +963,6 @@ impl IndexScheduler {
|
|||||||
Batch::IndexUpdate { index_uid, primary_key, mut task } => {
|
Batch::IndexUpdate { index_uid, primary_key, mut task } => {
|
||||||
let rtxn = self.env.read_txn()?;
|
let rtxn = self.env.read_txn()?;
|
||||||
let index = self.index_mapper.index(&rtxn, &index_uid)?;
|
let index = self.index_mapper.index(&rtxn, &index_uid)?;
|
||||||
// the index update can take a long time, so save this handle to make it available tothe search for the duration of the tick
|
|
||||||
*self.currently_updating_index.write().unwrap() =
|
|
||||||
Some((index_uid.clone(), index.clone()));
|
|
||||||
|
|
||||||
if let Some(primary_key) = primary_key.clone() {
|
if let Some(primary_key) = primary_key.clone() {
|
||||||
let mut index_wtxn = index.write_txn()?;
|
let mut index_wtxn = index.write_txn()?;
|
||||||
|
Loading…
Reference in New Issue
Block a user