More safeguards against getting an unknown remote file

This commit is contained in:
Kenneth Skovhede
2025-04-23 12:12:38 +02:00
parent e8f85961d0
commit d19e7f4430
2 changed files with 2 additions and 0 deletions
@@ -47,6 +47,7 @@ internal static class RecreateMissingIndexFiles
return;
await database.UpdateRemoteVolumeAsync(w.RemoteFilename, RemoteVolumeState.Uploading, -1, null).ConfigureAwait(false);
await database.CommitTransactionAsync("RecreateMissingIndexFile").ConfigureAwait(false);
await backendManager.PutAsync(w, null, null, false, () => database.FlushBackendMessagesAndCommitAsync(backendManager), taskreader.ProgressToken).ConfigureAwait(false);
}
}
@@ -172,6 +172,7 @@ namespace Duplicati.Library.Main.Operation.Backup
await database.AddIndexBlockLinkAsync(indexVolumeCopy.VolumeID, target.BlockVolume.VolumeID).ConfigureAwait(false);
}
await database.CommitTransactionAsync("UploadSpillVolume").ConfigureAwait(false);
await backendManager.PutAsync(target.BlockVolume, indexVolumeCopy, null, false, () => database.FlushBackendMessagesAndCommitAsync(backendManager), taskreader.ProgressToken).ConfigureAwait(false);
}
}