"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Duplicati/Library/Main/Operation/DeleteHandler.cs" between
duplicati-2.0.5.104-2.0.5.104_canary_2020-03-25.tar.gz and duplicati-2.0.5.106-2.0.5.106_canary_2020-05-11.tar.gz

About: Duplicati is a backup client that securely stores encrypted, incremental, compressed backups on local devices, cloud storage services and remote file servers (for Windows, macOS and Linux). A remark: This officially "pre-release" seems to run stable.

DeleteHandler.cs  (duplicati-2.0.5.104-2.0.5.104_canary_2020-03-25):DeleteHandler.cs  (duplicati-2.0.5.106-2.0.5.106_canary_2020-05-11)
skipping to change at line 83 skipping to change at line 83
} }
finally finally
{ {
if (tr != null) if (tr != null)
try { tr.Rollback(); } try { tr.Rollback(); }
catch { } catch { }
} }
} }
} }
public void DoRun(Database.LocalDeleteDatabase db, ref System.Data.IDbTr ansaction transaction, bool hasVerifiedBacked, bool forceCompact, BackendManager sharedManager) public void DoRun(Database.LocalDeleteDatabase db, ref System.Data.IDbTr ansaction transaction, bool hasVerifiedBackend, bool forceCompact, BackendManage r sharedManager)
{ {
// Workaround where we allow a running backendmanager to be used // Workaround where we allow a running backendmanager to be used
using(var bk = sharedManager == null ? new BackendManager(m_backendu rl, m_options, m_result.BackendWriter, db) : null) using(var bk = sharedManager == null ? new BackendManager(m_backendu rl, m_options, m_result.BackendWriter, db) : null)
{ {
var backend = bk ?? sharedManager; var backend = bk ?? sharedManager;
if (!hasVerifiedBacked && !m_options.NoBackendverification) if (!hasVerifiedBackend)
{ {
var backupDatabase = new LocalBackupDatabase(db, m_options); FilelistProcessor.VerifyRemoteList(backend, m_options, db, m
var latestFilelist = backupDatabase.GetTemporaryFilelistVolu _result.BackendWriter, true, transaction);
meNames(latestOnly: true, transaction: transaction);
FilelistProcessor.VerifyRemoteList(backend, m_options, db, m
_result.BackendWriter, latestFilelist);
} }
IListResultFileset[] filesets = db.FilesetsWithBackupVersion.ToA rray(); IListResultFileset[] filesets = db.FilesetsWithBackupVersion.ToA rray();
List<IListResultFileset> versionsToDelete = new List<IListResult Fileset>(); List<IListResultFileset> versionsToDelete = new List<IListResult Fileset>();
versionsToDelete.AddRange(new SpecificVersionsRemover(this.m_opt ions).GetFilesetsToDelete(filesets)); versionsToDelete.AddRange(new SpecificVersionsRemover(this.m_opt ions).GetFilesetsToDelete(filesets));
versionsToDelete.AddRange(new KeepTimeRemover(this.m_options).Ge tFilesetsToDelete(filesets)); versionsToDelete.AddRange(new KeepTimeRemover(this.m_options).Ge tFilesetsToDelete(filesets));
versionsToDelete.AddRange(new RetentionPolicyRemover(this.m_opti ons).GetFilesetsToDelete(filesets)); versionsToDelete.AddRange(new RetentionPolicyRemover(this.m_opti ons).GetFilesetsToDelete(filesets));
// When determining the number of full versions to keep, we need to ignore the versions already marked for removal. // When determining the number of full versions to keep, we need to ignore the versions already marked for removal.
versionsToDelete.AddRange(new KeepVersionsRemover(this.m_options ).GetFilesetsToDelete(filesets.Except(versionsToDelete))); versionsToDelete.AddRange(new KeepVersionsRemover(this.m_options ).GetFilesetsToDelete(filesets.Except(versionsToDelete)));
 End of changes. 3 change blocks. 
7 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)