From b1f37356d22eb2f805fcafa9bf1c15682fa1f032 Mon Sep 17 00:00:00 2001 From: marvin-j97 Date: Sat, 16 Dec 2023 21:34:03 +0100 Subject: [PATCH] Tree::disk_space: dont lock active journal --- src/tree.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/tree.rs b/src/tree.rs index 63315cfd..eec20fb0 100644 --- a/src/tree.rs +++ b/src/tree.rs @@ -267,8 +267,6 @@ impl Tree { .map(|x| x.metadata.file_size) .sum::(); - let _lock = self.journal.shards.full_lock(); - let active_journal_size = fs_extra::dir::get_size(self.config().path.join(JOURNALS_FOLDER)) .map_err(|_| std::io::Error::new(std::io::ErrorKind::Other, "fs_extra error"))?;