Commit Graph
1925 Commits
Author SHA1 Message Date
BlueBlock e52cef304b codacy fixes applied 2 2019-08-02 13:54:30 -04:00
BlueBlock 4407d24f5d codacy fixes applied 2019-08-02 13:48:50 -04:00
BlueBlock ca736c74de update the backups stats also when a bcakup is cancelled
PostBackupVerification() was being skipped when a bcakup was cancelled. PostBackupVerification() will now be called.
2019-08-02 13:40:57 -04:00
BlueBlock 815e30b63b update csproj toolverion and nuget packages 2019-07-31 13:20:03 -04:00
drwtsn32x b8d71b7ada Remove debug message 2019-07-31 07:11:00 -07:00
drwtsn32x 065ca97e7d Fix for issue 3308 - deletion of too many Filesets 2019-07-31 07:09:37 -07:00
drwtsn32x af66faf721 update 2019-07-30 21:07:17 -07:00
drwtsn32x 6af03f7eb7 Improve debug database sanitization 2019-07-30 21:03:58 -07:00
drwtsn32x cfeabfb2dd Add auto vacuum interval option 2019-07-29 17:56:43 -07:00
warwickmmandGitHub cd27a17500 Merge pull request #3832 from drwtsn32x/auto-compact-interval
Add option to skip compact operations within specified duration
2019-07-28 10:06:05 -07:00
Max 7aea21ef35 upstream 2019-07-28 12:44:20 +02:00
BlueBlock 08a1e9998a initial upgrade to framework 4.6.2
- no code changes except those noted below
- projects upgrade to 4.6.2
- wixinstaller project upgraded automatically by VisualStudio
- wixinstaller updated to require 4.6.2
- Library.Encryption changed to Standard2.0 so accommodate update to SharpAesCrypt
2019-07-26 09:18:16 -04:00
drwtsn32x a64c7ee2b9 clean up LastCompact property 2019-07-25 19:51:45 -07:00
BlueBlock 14e6068a5f Also stop the file enum process when the user has cancelled
The file enumeration process should also stop when the user has cancelled the operation.
2019-07-24 15:58:44 -04:00
BlueBlock b416c6c78b fix - do not throw exception in case where user has asked to cancel 2019-07-24 15:02:30 -04:00
BlueBlock ba1c9bac21 resolve codacy issues 2019-07-23 11:14:06 -04:00
BlueBlock 29a1a7c618 fix stop after the current file
'stop after upload' is now
stop after the current file' and the operation will cleanly allow the current file to complete.
2019-07-23 10:35:33 -04:00
drwtsn32x ba8e964b39 Fix comparison check 2019-07-21 09:54:06 -07:00
drwtsn32x 2a24de8676 tweaks 2019-07-21 08:11:42 -07:00
drwtsn32x 3e4495cfdf Add auto-compact-interval option to allow delay between automatic compactions 2019-07-21 07:25:32 -07:00
BlueBlock 55a55cf18e Fix spelling of compression 2019-07-16 10:56:53 -04:00
Kenneth Hsu 7fd815b56e Simplify comment. 2019-07-06 15:34:46 -07:00
Kenneth Hsu c149792973 Dispose Backends after upload operations.
This addresses issue #3808.
2019-07-06 15:33:59 -07:00
Kenneth Hsu bfa3c120e5 Make Worker implement IDisposable.
This will allow the underlying Task and Backend to be disposed.
2019-07-06 12:50:37 -07:00
Kenneth Hsu f954cf8bea Remove unused variable. 2019-07-06 12:45:48 -07:00
Kenneth SkovhedeandGitHub fe6a10cbce Merge pull request #3801 from warwickmm/fix_used_block_query
Fix database issue where block was not recognized as being used
2019-06-30 22:53:41 +02:00
Kenneth Skovhede 8dae320a7a Added warnings about AmazonCD shutting down 2019-06-25 13:16:18 +02:00
Kenneth Hsu 3e0f1d5e5e Fix issue where block was not recognized as being used.
This fixes an occurrence of the "Unexpected difference in fileset
version" error due to a deleted block having the same hash as one that
is currently in-use.

This fixes issue #3800.
2019-06-22 09:51:57 -07:00
drwtsn32x a1e6592d6e Show vacuum operation in status message 2019-05-13 21:27:37 -07:00
Michal Naiman f4eef557ee upstream 2019-05-07 11:48:40 +02:00
Rune Henriksen 3c986a3fe5 Check the block size to avoid scavenging behavoir when Duplicati can't locate the 'empty' block which doesn't exist 2019-05-05 02:20:32 +02:00
Michal Naiman ad2105aeb2 NuGet packages update 2019-05-01 09:28:46 +02:00
Michal Naiman aed2f4d5c8 Fixes related to DNC libraries interfaces 2019-04-29 00:57:02 +02:00
Michal Naiman 1bc1e58737 upstream 2019-04-28 13:45:26 +02:00
Kenneth SkovhedeandGitHub 83bb725dc6 Merge pull request #3740 from warwickmm/remove_unused_local_variables
Remove unused local variables
2019-04-25 13:22:39 +02:00
Kenneth Hsu a7779225b9 Run PRAGMA optimize when closing SQLite connection.
It's recommended that PRAGMA optimize be run just before closing each
database connection "to achieve the best long-term query performance
without the need to do a detailed engineering analysis of the
application schema and SQL".  Some users have been running this manually
and experiencing significant improvements in performance:

https://sqlite.org/pragma.html#pragma_optimize
https://forum.duplicati.com/t/verifying-backend-data/348/65
https://forum.duplicati.com/t/verifying-backend-data-forever/5324/32

This addresses issue #3745.
2019-04-22 21:16:29 -07:00
drwtsn32x 41a639ddc5 Show vacuum in status message 2019-04-18 21:04:31 -07:00
Kenneth Hsu 457254d9e1 Remove unused local variables. 2019-04-17 20:10:53 -07:00
Kenneth SkovhedeandGitHub cb44723c11 Merge pull request #3720 from warwickmm/throw_failed_put_exception
Ensure that failed put operations throw exception
2019-04-09 22:40:41 +02:00
Kenneth SkovhedeandGitHub e771d0f8a2 Merge pull request #3728 from duplicati/fix-string-fileReadBuferSize
Fix FileReadBufferSizeLong typo
2019-04-09 22:37:52 +02:00
Rune Henriksen ae5b3b2e95 remove an invalid trailing parenthesis and change the drop clause to drop view since File was changed from a table to a view in 2.0.4.13 2019-04-09 21:12:25 +02:00
JonMikelVandGitHub 8aa037bc24 Fix FileReadBufferSizeLong typo
"bytes a read from a file" -> "bytes are read from a file"
2019-04-08 23:45:11 -05:00
Kenneth Skovhede b705b531a6 Fixed an issue where the randomly generated database names were numeric instead of alphabetic.
This has no impact on existing database, as the names are stored once generated.
2019-04-08 13:48:38 +02:00
Kenneth Hsu 914203c071 Reorder methods alphabetically. 2019-04-06 21:42:01 -07:00
Kenneth Hsu e3c16c58fd Set flushed result after all tasks have completed. 2019-03-31 19:41:09 -07:00
Kenneth Hsu be21e09db1 Cancel the FlushBackend task if upload exception occurs.
This should avoid the problem of something awaiting a
FlushBackend.LastWriteSizeAync task that may never complete.
2019-03-31 19:41:09 -07:00
Kenneth Hsu 9a80e422e9 Remove unnecessary try-finally.
The only code in the finally block was to set the result of the
FlushRequest if the completed task was not faulted.  This could be done
without the try-finally.
2019-03-31 19:38:42 -07:00
Kenneth Hsu 19981ae59d Simplify implementation of FlushBackend.
If the uploader throws an exception, we should not set the status of the
flush request and let the exception bubble up.
2019-03-31 19:38:42 -07:00
Kenneth Hsu fdb2c6788c Ensure that failed put operations throw exception.
The FlushBackend method uses Task.WhenAny to await the first completion
of the uploader task or the flush request.  Since the uploader was
setting the status of the flush request in the finally block, the flush
request would complete first when an exception was thrown, causing the
uploader's exception to be unobserved.  To resolve this,  we check that
the uploader's status is not faulted before setting the flush request
status.

This addresses issue #3673.
2019-03-31 19:38:40 -07:00
Sean Templeton 8be3203aa2 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.
2019-03-30 19:55:36 -05:00