Merge pull request #58 from satherton/more-precise-backup-expire-safety

Clarity improvement, resetting backup description variable because it…
This commit is contained in:
Evan Tschannen 2018-03-09 12:06:24 -08:00 committed by GitHub
commit 3cac430f6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -632,6 +632,7 @@ public:
if(f.endVersion < expireEndVersion)
toDelete.push_back(std::move(f.fileName));
}
desc = BackupDescription();
// If some files to delete were found AND force is needed AND the force option is NOT set, then fail
if(!toDelete.empty() && forceNeeded && !force)