Kenneth Skovhede
b0bd9c121f
Fixed reading the size of files in restore
...
This significantly speeds up the restore file listing speed.
2025-09-26 13:54:06 +02:00
Kenneth Skovhede
39cca5c24f
Simplified calling code to not rely on extension methods
2025-09-25 11:33:56 +02:00
Kenneth Skovhede
230d80642a
Fixed invariant formatting helpers
...
This fixes an issue with formatting for invariant values that was caused by incrorrect function overload selection.
To avoid future issues, the two similar functions have been renamed to clarify what they are working for.
2025-09-25 11:14:54 +02:00
Kenneth Skovhede
f0d8677ef5
Include duplicated blocks in recreated index files
...
This fixes #6504
2025-09-23 11:12:36 +02:00
Kenneth Skovhede
b2c6ef73c5
Improve logging of SQL statements
...
This updates the logging code to do invariant formatting of the SQL statements
2025-09-22 14:39:46 +02:00
Carl Johnsen
7670ea9a58
Ensured that all values that are passed to interpolation strings have been passed through FormatInvariant to prevent SQLite errors related to string formatting cultures.
2025-09-05 14:11:05 +02:00
Carl Johnsen
1a5fef36d7
Removed whitespace
2025-09-05 14:07:58 +02:00
Carl Johnsen
b3fe276a13
Ensured that all temporary tables uset the same type of generated guid name
2025-09-05 14:06:55 +02:00
Kenneth Skovhede
a1fa2f8e1e
Fixed to use same helper method
2025-09-02 09:32:25 +02:00
Kenneth Skovhede
1f8f79b9c0
Ensure that a query string is formatted with invariant string formatting
2025-09-02 08:31:02 +02:00
Carl Johnsen
0194d2a486
Merge branch 'master' into feature/restore-volume-cache-size-parameter
2025-08-14 17:22:41 +02:00
Kenneth Skovhede
35347a7161
Handle a case where a missing hash would cause a crash
2025-08-14 09:27:37 +02:00
Carl Johnsen
44c8793eaa
Changed the cache evict flag in BlockRequest to be an enum, as there are now more than 2 types of block request
2025-08-08 12:38:08 +02:00
Carl-Johannes Johnsen and GitHub
a5c8dce21c
Merge pull request #6459 from carljohnsen/bugfix/remotevolume-hash-null
...
Bugfix/RemoteVolume hash null
2025-08-07 21:08:54 +02:00
Carl Johnsen
4f65127ed7
Removed throwing the exception, since recreating the database will restore the hash
2025-08-06 10:16:11 +02:00
Kenneth Skovhede
e17759efe3
Fixed some quotes and a TODO
2025-08-05 13:47:57 +02:00
Kenneth Skovhede
429bcd1f2d
Include deleted blocks when recreating dindex files.
...
This fixes #6339
2025-07-11 15:55:36 +02:00
Kenneth Skovhede
32f0283097
Fix bugreport create
...
The new SQLite library does not like to do VACUUM within a transaction. This PR updates it to run VACUUM outside the transaction.
2025-07-08 14:37:49 +02:00
Kenneth Skovhede and GitHub
eb2bb571cf
Merge pull request #6402 from carljohnsen/performance/list-root
...
Performance/List roots takes long time
2025-07-07 18:09:22 +02:00
Carl Johnsen
0a04d3e77e
Moved filtering of common roots from the SQL query to C#
2025-07-07 17:09:29 +02:00
Kenneth Skovhede
cb89572ef8
Setting DBNull.Value for null values
2025-07-07 17:04:07 +02:00
Carl Johnsen
bb87e94ffa
Post merge master fixes
2025-06-24 14:38:58 +02:00
Carl Johnsen
e55c36081f
Merge branch 'master' into performance/mssqlite-async
2025-06-24 14:24:09 +02:00
Carl Johnsen
79b63ee4b2
Fixed race condition on creating and disposing SqliteCommands from multiple threads sharing the same SqliteConnection
2025-06-24 12:04:31 +02:00
Kenneth Skovhede
b7a0053e5b
Rewrote function to return minimal unique prefixes instead
2025-06-23 17:40:28 +02:00
Kenneth Skovhede
67e431a715
Implemented new query to get root paths and their transitive virtual folders
2025-06-20 11:13:12 +02:00
Carl Johnsen
6460e33787
Added missing double quotes to the SQL queries in LocalRepairDatabase.FixEmptyMetadatasets()
2025-06-19 13:23:39 +02:00
Carl Johnsen
0a047a37e3
SQL query inside GetEmptyMetadataBlocksetId had not only moved files, but had also changed
2025-06-19 13:20:44 +02:00
Carl Johnsen
f6ac30e831
Merge remote-tracking branch 'upstream/master' into performance/mssqlite-async
2025-06-19 12:17:30 +02:00
Carl Johnsen
2412800c0c
Removed the sqlite page cache option. It should be set through the environment variable, or some other way of providing a custom database configurotion
2025-06-19 11:41:39 +02:00
Carl Johnsen
7e979a4e9b
Found some methods in LocalBackupDatabase that didn't accept a cancellation token
2025-06-19 11:01:12 +02:00
Carl Johnsen
32efa4b845
Updated all of the handler calls to database methods to forward their cancellation token
2025-06-19 09:47:33 +02:00
Carl Johnsen
7c425c4649
Added some extra overloads to the async database extension methods
2025-06-19 08:08:17 +02:00
Carl Johnsen
b9952281ed
ReusableTransaction.RollbackAsync now also accepts cancellation tokens
2025-06-19 08:07:48 +02:00
Carl Johnsen
4f7760f092
Made the LocalTestDatabase methods accep a cancellation token
2025-06-19 08:04:20 +02:00
Carl Johnsen
488d531bd5
Made the LocalRestoreDatabase methods accept a cancellation token
2025-06-19 07:54:53 +02:00
Carl Johnsen
04c52010fe
Made the LocalRepairDatabase methods accept a cancellation token
2025-06-19 07:26:54 +02:00
Carl Johnsen
1c103c18b8
Made the LocalRecreateDatabase methods accept a cancellation token
2025-06-19 07:15:28 +02:00
Carl Johnsen
736b52c2fb
Made the LocalPurgeDatabase methods accept a cancellation token
2025-06-19 07:00:14 +02:00
Carl Johnsen
3ea8733a4d
Made the LocalListDatabase methods accept a cancellation token
2025-06-19 06:54:24 +02:00
Kenneth Skovhede and GitHub
fa36b705cb
Merge pull request #6356 from duplicati/feature/correct-version-number
...
Return version numbers, and not ids
2025-06-18 21:16:46 +02:00
Carl Johnsen
28ca30f617
Made the LocalListChangesDatabase methods accept a cancellation token
2025-06-18 16:28:23 +02:00
Carl Johnsen
42877ebf96
Made the LocalListBrokenFilesDatabase methods accept a cancellation token
2025-06-18 16:23:10 +02:00
Carl Johnsen
936742b586
Made the LocalListAffectedDatabase methods accept a cancellation token
2025-06-18 16:11:10 +02:00
Carl Johnsen
c496d0bf8c
Made the LocalDeleteDatabase methods accept a cancellation token
2025-06-18 16:07:46 +02:00
Carl Johnsen
ccce18bb00
Made the LocalBugReportDatabase methods accept a cancellation token
2025-06-18 16:02:05 +02:00
Carl Johnsen
8039cbb0f6
Made the LocalBackupDatabase methods accept a cancellation token
2025-06-18 16:00:20 +02:00
Carl Johnsen
3b3a7801b8
Made the LocalDatabase methods accept a cancellation token
2025-06-18 15:36:10 +02:00
Carl Johnsen
87dc978425
Made the ChangeStatistics methods accept a cancellation token
2025-06-18 14:37:13 +02:00
Carl Johnsen
da57bbae33
Made the TemporaryDbValueList methods accept a cancellation token
2025-06-18 14:21:57 +02:00