Skip to content

Commit

Permalink
Tree::disk_space: dont lock active journal
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Dec 16, 2023
1 parent 26a6e70 commit b1f3735
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,6 @@ impl Tree {
.map(|x| x.metadata.file_size)
.sum::<u64>();

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"))?;

Expand Down

0 comments on commit b1f3735

Please sign in to comment.