From f056fc118fcdba2f7270f5b8517f50664bc601ca Mon Sep 17 00:00:00 2001 From: funilrys Date: Sat, 3 Dec 2022 17:29:41 +0100 Subject: [PATCH] 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. --- dump/src/reader/v4/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dump/src/reader/v4/mod.rs b/dump/src/reader/v4/mod.rs index 885f59d97..db2cec4e5 100644 --- a/dump/src/reader/v4/mod.rs +++ b/dump/src/reader/v4/mod.rs @@ -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()), ) })) }