More safeguards against getting an unknown remote file
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user