mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue