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:
funilrys 2022-12-03 17:29:41 +01:00
parent e81b349658
commit f056fc118f
No known key found for this signature in database
GPG Key ID: 0D8BFEF5515C00C6

View File

@ -101,7 +101,7 @@ impl V4Reader {
index.uid.clone(),
&self.dump.path().join("indexes").join(index.index_meta.uuid.to_string()),
&index.index_meta,
BufReader::new(self.tasks.get_ref().try_clone().unwrap()),
BufReader::new(File::open(dump.path().join("updates").join("data.jsonl")).unwrap()),
)
}))
}