From 8be3203aa2304f2da2e54e6dd3ac87f80a48eda3 Mon Sep 17 00:00:00 2001 From: Sean Templeton Date: Sat, 30 Mar 2019 19:55:36 -0500 Subject: [PATCH] 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. --- Duplicati/Library/Main/Operation/Backup/DataBlockProcessor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Duplicati/Library/Main/Operation/Backup/DataBlockProcessor.cs b/Duplicati/Library/Main/Operation/Backup/DataBlockProcessor.cs index 5ee7c7508..ba477f1e3 100644 --- a/Duplicati/Library/Main/Operation/Backup/DataBlockProcessor.cs +++ b/Duplicati/Library/Main/Operation/Backup/DataBlockProcessor.cs @@ -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);