From a6699e513d54470bcc1f4e044fe2b2def6144fe1 Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Sun, 27 Mar 2016 12:50:40 +0200 Subject: [PATCH] Fixed the repair to also support blocksize values that are not evenly divisible with the blockhash size --- Duplicati/Library/Main/Database/LocalRecreateDatabase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Duplicati/Library/Main/Database/LocalRecreateDatabase.cs b/Duplicati/Library/Main/Database/LocalRecreateDatabase.cs index 388de102e..fb876b226 100644 --- a/Duplicati/Library/Main/Database/LocalRecreateDatabase.cs +++ b/Duplicati/Library/Main/Database/LocalRecreateDatabase.cs @@ -84,7 +84,7 @@ namespace Duplicati.Library.Main.Database ""E"".""BlocksetID"", ""F"".""Index"" + (""E"".""BlocklistIndex"" * {3}) AS ""FullIndex"", ""F"".""BlockHash"", - MIN({3} * {1}, ""E"".""Length"" - ((""F"".""Index"" + (""E"".""BlocklistIndex"" * {3})) * {0})) AS ""BlockSize"", + MIN({0}, ""E"".""Length"" - ((""F"".""Index"" + (""E"".""BlocklistIndex"" * {3})) * {0})) AS ""BlockSize"", ""E"".""Hash"", ""E"".""BlocklistSize"", ""E"".""BlocklistHash""