Fix index files not being created for full dblock files

As part of the parallel upload changes a bug slipped in where a check was
being made if the index volume writer exists before creating said index
volume writer. Fixed by changing the test to check if the temporary index
volume exists and then creating the writer for the index file.
This commit is contained in:
Sean Templeton
2019-03-30 19:55:36 -05:00
parent fc5249d304
commit 8be3203aa2
@@ -102,7 +102,7 @@ namespace Duplicati.Library.Main.Operation.Backup
IndexVolumeWriter indexVolumeWriter = null;
FileEntryItem indexEntry = null;
if (indexVolumeWriter != null)
if (indexvolume != null)
{
indexVolumeWriter = await indexvolume.CreateVolume(blockvolume.RemoteFilename, blockEntry.Hash, blockEntry.Size, options, database);
indexEntry = CreateFileEntryForUpload(indexVolumeWriter, options);