Merge pull request #600 from rustic-rs/fix-stats

backup: fix dir stats
This commit is contained in:
aawsome 2023-04-22 22:05:06 +02:00 committed by GitHub
commit a0aecba5f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ Breaking changes:
Bugs fixed:
- restore: Warm-up options given by the command line didn't work. This has been fixed.
- backup showed 1 dir as changed when backing up without parent. This has been fixed.
New features:
- backup: Backing up (small) files is now much more parallelized.

View File

@ -129,7 +129,7 @@ impl<BE: DecryptWriteBackend, I: IndexedBackend> TreeArchiver<BE, I> {
pub fn finalize(mut self, parent_tree: Option<Id>) -> Result<(Id, SnapshotSummary)> {
let parent = match parent_tree {
None => ParentResult::NotMatched,
None => ParentResult::NotFound,
Some(id) => ParentResult::Matched(id),
};
let id = self.backup_tree(&PathBuf::new(), parent)?;