"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Duplicati/Library/Main/Operation/CompactHandler.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.

CompactHandler.cs  (duplicati-2.0.5.104-2.0.5.104_canary_2020-03-25):CompactHandler.cs  (duplicati-2.0.5.106-2.0.5.106_canary_2020-05-11)
skipping to change at line 101 skipping to change at line 101
{ {
var report = db.GetCompactReport(m_options.VolumeSize, m_options.Thr eshold, m_options.SmallFileSize, m_options.SmallFileMaxCount, transaction); var report = db.GetCompactReport(m_options.VolumeSize, m_options.Thr eshold, m_options.SmallFileSize, m_options.SmallFileMaxCount, transaction);
report.ReportCompactData(); report.ReportCompactData();
if (report.ShouldReclaim || report.ShouldCompact) if (report.ShouldReclaim || report.ShouldCompact)
{ {
// Workaround where we allow a running backendman ager to be used // Workaround where we allow a running backendman ager to be used
using(var bk = sharedBackend == null ? new Backen dManager(m_backendurl, m_options, m_result.BackendWriter, db) : null) using(var bk = sharedBackend == null ? new Backen dManager(m_backendurl, m_options, m_result.BackendWriter, db) : null)
{ {
var backend = bk ?? sharedBackend; var backend = bk ?? sharedBackend;
if (!hasVerifiedBackend && !m_options.NoBackendverification) if (!hasVerifiedBackend)
{ {
var backupDatabase = new LocalBackupDatabase(db, m_optio FilelistProcessor.VerifyRemoteList(backend, m_options, d
ns); b, m_result.BackendWriter, true, transaction);
var latestFilelist = backupDatabase.GetTemporaryFilelist
VolumeNames(latestOnly: true, transaction: transaction);
FilelistProcessor.VerifyRemoteList(backend, m_options, d
b, m_result.BackendWriter, latestFilelist);
} }
BlockVolumeWriter newvol = new BlockVolumeWriter(m_options); BlockVolumeWriter newvol = new BlockVolumeWriter(m_options);
newvol.VolumeID = db.RegisterRemoteVolume(newvol.RemoteFilen ame, RemoteVolumeType.Blocks, RemoteVolumeState.Temporary, transaction); newvol.VolumeID = db.RegisterRemoteVolume(newvol.RemoteFilen ame, RemoteVolumeType.Blocks, RemoteVolumeState.Temporary, transaction);
IndexVolumeWriter newvolindex = null; IndexVolumeWriter newvolindex = null;
if (m_options.IndexfilePolicy != Options.IndexFileStrategy.N one) if (m_options.IndexfilePolicy != Options.IndexFileStrategy.N one)
{ {
newvolindex = new IndexVolumeWriter(m_options); newvolindex = new IndexVolumeWriter(m_options);
newvolindex.VolumeID = db.RegisterRemoteVolume(newvolind ex.RemoteFilename, RemoteVolumeType.Index, RemoteVolumeState.Temporary, transact ion); newvolindex.VolumeID = db.RegisterRemoteVolume(newvolind ex.RemoteFilename, RemoteVolumeType.Index, RemoteVolumeState.Temporary, transact ion);
 End of changes. 2 change blocks. 
7 lines changed or deleted 3 lines changed or added

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