mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-22 21:04:27 +01:00
Re-Open tasks list when needed.
Indeed, before this patch we were using the reference instead of "reopening" the task list each time we needed to access it. Without this patch, all other usage of the task attribute will break.
This commit is contained in:
parent
a43a0712fa
commit
13fb5ce974
@ -142,7 +142,7 @@ impl V5Reader {
|
||||
V5IndexReader::new(
|
||||
index.uid.clone(),
|
||||
&self.dump.path().join("indexes").join(index.index_meta.uuid.to_string()),
|
||||
BufReader::new(self.tasks.get_ref().try_clone().unwrap()),
|
||||
BufReader::new(File::open(&self.dump.path().join("updates").join("data.jsonl")).unwrap()),
|
||||
)
|
||||
}))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user