mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-01-11 22:14:32 +01:00
Re-open tasks queue.
Indeed, before this patch, I was (probably) breaking every usage of the tasks BufReader. This patch solves the issue by reopening the the tasks file every time its needed.
This commit is contained in:
parent
e81b349658
commit
f056fc118f
@ -101,7 +101,7 @@ impl V4Reader {
|
|||||||
index.uid.clone(),
|
index.uid.clone(),
|
||||||
&self.dump.path().join("indexes").join(index.index_meta.uuid.to_string()),
|
&self.dump.path().join("indexes").join(index.index_meta.uuid.to_string()),
|
||||||
&index.index_meta,
|
&index.index_meta,
|
||||||
BufReader::new(self.tasks.get_ref().try_clone().unwrap()),
|
BufReader::new(File::open(dump.path().join("updates").join("data.jsonl")).unwrap()),
|
||||||
)
|
)
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user