|
b9f8ff0e8f
|
Fix a harmless compiler warning.
FossilOrigin-Name: 663a89164fdd43529a13cab4b9d9f04fe519e7c6b954f9c91e32e4d7ae25eb46
|
2022-11-01 21:42:50 +00:00 |
|
|
6da7cc9b4c
|
Fix harmless compiler warnings.
FossilOrigin-Name: de829770aa0f59b4cd3ab1dc5eec90be82663dca3199c2cf6d97f4c41ce9f799
|
2022-11-01 18:56:39 +00:00 |
|
|
11980a6b8e
|
Fix compilation errors in the recover API seen with MSVC.
FossilOrigin-Name: 78d17c4fedc1629bf161f9858f2b8bf35506155ccaa0acc084b419d244d4f75d
|
2022-11-01 14:13:05 +00:00 |
|
|
549907fd67
|
Avoid a segfault that could occur when running the recover API on a database handle with memory-mapping enabled.
FossilOrigin-Name: e02c697281a777c33070168af784b2d291397e488244a217620897f40aed7158
|
2022-10-31 10:53:23 +00:00 |
|
|
053bb22f35
|
Fix harmless compiler warnings in testing code.
FossilOrigin-Name: 2f53612388507f9b1ecbec3c15281825beab54b8062d97d0ab6f009c5fed347b
|
2022-10-28 18:52:05 +00:00 |
|
|
c97bb14fab
|
Fix a minor problem with sqlite_dbdata.
FossilOrigin-Name: 58c2e49279c8f77f006b0c2ce351776bc711633f9c1a39c7a37969838d49ec0b
|
2022-10-27 23:17:49 +00:00 |
|
|
676d1cda92
|
Fix another crash in the recover extension triggered by a corrupt database.
FossilOrigin-Name: d125377378916fb3147612a536fde15ee955176eea9ea6eaa4a2ee5f1e8e1cbe
|
2022-10-27 20:27:45 +00:00 |
|
|
10f5525410
|
Fix another problem to do with recovering from in-memory databases.
FossilOrigin-Name: 5a7bfd4a217cd80882a1827674b479cdc547419a785e06e0ee82cb8cfca42701
|
2022-10-27 19:06:42 +00:00 |
|
|
ac16a4716b
|
Ensure that the VFS wrapper in the recover extension does not attempt to invoke undefined methods on the underlying VFS.
FossilOrigin-Name: 347c575108bc8112613a02afda1247bdbed24c15def7eb412d0b27aba047715b
|
2022-10-27 19:02:51 +00:00 |
|
|
895f12dfe7
|
Fix an assert() failure in the recover extension triggered by a zero value as the first page-number in an overflow page chain.
FossilOrigin-Name: 44c0874c33e76ce708022e5c38c74f75565a8cea9f4c5b067cc0a54079aeee20
|
2022-10-27 18:35:09 +00:00 |
|
|
340b1d1a71
|
Do not use sqlite3_result_text16() in the recover extension if SQLITE_OMIT_UTF16 is defined.
FossilOrigin-Name: 3d20d77a3511bb223474da8491e1da8aec098c41c1b81ab78ff80fbd37d5b568
|
2022-10-27 11:25:08 +00:00 |
|
|
48a4a4b73d
|
Fix a problem with running ".recover" on an in-memory database.
FossilOrigin-Name: 87b4cca2b84845cee603d40fbf16c9635d6dc2d19d2f37ae86abfeff716c9a85
|
2022-10-27 11:12:54 +00:00 |
|
|
21fd7ce098
|
Do not use sqlite3_mutex_xxx() functions in sqlite3recover.c when built with SQLITE_THREADSAFE=0.
FossilOrigin-Name: cd0aa27d1732abc61c8a8440118ff629f7dca185d2f515ce1f6090c49d8dc890
|
2022-10-27 10:51:49 +00:00 |
|
|
07dd481010
|
Remove an unused variable from the recovery extension.
FossilOrigin-Name: a029dddff4f4ed7275538610cbd9cea658b905b72924860ec9cda9e76dabcfac
|
2022-10-26 20:12:46 +00:00 |
|
|
50632afa6e
|
Remove an undefined left-shift operation from the recover extension.
FossilOrigin-Name: a67082357a2cc348faf8236aafa7f39eb5cb673b1d114a594c6d5bb257f85b73
|
2022-10-26 18:29:19 +00:00 |
|
|
5ad03a486e
|
Merge further changes from trunk, including fix to dbdata.c.
FossilOrigin-Name: bcf6b48d52c1ce656899f50bd508c0920cae8cf2ef3c0758a7633981f0f0f484
|
2022-10-26 18:22:22 +00:00 |
|
|
361fb98b5d
|
Move file /ext/misc/dbdata.c to the /ext/recover/ directory.
FossilOrigin-Name: f6d5ac807efcf6140016a8b8f0c74566c0bfc98ad92bd8fca03c5cc80ebf3dec
|
2022-10-19 18:03:39 +00:00 |
|
|
f0799fdf6d
|
Add missing comments and fix other code issues.
FossilOrigin-Name: 8ed4e4a80d8104d20b211a0b3e299abdb955cabdd36979bf6aae54266dc9778d
|
2022-10-15 18:26:30 +00:00 |
|
|
3fa10f82f4
|
Handle recovering databases with reserved bytes at the end of each page.
FossilOrigin-Name: 52d0235ef3f21683daadf2343514f7b95a67c3589266f75c1e00e04f11dc6214
|
2022-10-14 15:46:19 +00:00 |
|
|
249efd04d7
|
Add tests for detecting page size of databases.
FossilOrigin-Name: 31f9e2369fcf59032b7c4c9f5bfc85e7ef7c174003b0b9e2757dad5a4c79b370
|
2022-10-13 20:06:17 +00:00 |
|
|
88a0637f57
|
Ensure the page-size, auto-vacuum and other settings are copied into the recovered database.
FossilOrigin-Name: 078520f2825bcb82d01b30209409e9bf8b6c99084c192345df41c9f531d08f51
|
2022-10-06 21:00:23 +00:00 |
|
|
4df12ce5a8
|
Add code to determine the database page-size by searching for well-formed pages.
FossilOrigin-Name: 0dbd0ccef532e076fa82c9fad4dc9fe632c0ef43e3483cc288cbb7eca336a9b9
|
2022-10-06 17:20:12 +00:00 |
|
|
adc686043e
|
Improve handling of corruption in the sqlite_schema table b-tree structure.
FossilOrigin-Name: 2be0dba12fb9b98cd9632f1ff3f30aeb29661a2e121b68c2f3335617b027797b
|
2022-10-05 16:58:28 +00:00 |
|
|
041cc06139
|
Better handling for databases with corrupt headers.
FossilOrigin-Name: 17f68d803685405d880025134c71bac01077962d677f2902a608952d0b9cdb5a
|
2022-10-04 19:43:12 +00:00 |
|
|
7e33f8f43b
|
Modify implementation of recovery to break recovery of the lost_and_found table into multiple steps.
FossilOrigin-Name: adedfd040bb2d1c2dcda0b91c6073f12953e45d9b860a8f217d990e861d66dfb
|
2022-09-26 20:51:16 +00:00 |
|
|
8d8fc58413
|
Add the SQLITE_RECOVER_SLOWINDEXES option, for specifying that indexes should be created and populated along with tables, instead of separately at the end of the recovery operation.
FossilOrigin-Name: ad9dba9d1eae786575c7f31e34b342b6f5b26e719bbe27b61609cad8cfd0a505
|
2022-09-24 19:54:49 +00:00 |
|
|
351563efe1
|
Add sqlite3_recover_step() to header file sqlite3recover.h. Update the API docs in this file.
FossilOrigin-Name: 47f416153035d6bf0ae27587583d2957c87c02caecbd4e7f363bcb2bc27cf159
|
2022-09-24 19:17:20 +00:00 |
|
|
aee4049128
|
Update things to use sqlite3_recover_step() internally.
FossilOrigin-Name: f4b15aad3005237b7ac507eed2b9b07e0f5c9407ab28f2656a21c9845f13d35f
|
2022-09-24 18:05:52 +00:00 |
|
|
9bbd91b39d
|
Internal changes to the recover extension towards a step() style interface.
FossilOrigin-Name: 73926d5c8cd1ecece134b5a73b44ee1dfca74dc200606e3f009b06cdecf8cee9
|
2022-09-23 21:01:10 +00:00 |
|
|
80b1f6fcde
|
Fix various compiler warnings in new code on this branch.
FossilOrigin-Name: ae49e9efde3012158061def6e0a8d993abbc5933514a21f84bc10f700f61b5e2
|
2022-09-23 11:40:43 +00:00 |
|
|
73390f09c2
|
Fix windows builds of recover extension.
FossilOrigin-Name: abcbb6abfe08fc590123f0aa1bd72cfdecc75908f078f1348dc0e957de98bf52
|
2022-09-15 03:54:52 +00:00 |
|
|
6fa0a11c7b
|
Include recovery extension in configure/make builds of testfixture.
FossilOrigin-Name: d2f4652144c4a54012a2176c178c5ade3463bd017515f472cfa8dafdde192df3
|
2022-09-14 20:45:46 +00:00 |
|
|
3c24342841
|
Extra tests and fixes.
FossilOrigin-Name: deed5336931b23bb507c064d08e9899b33f04e4f7eee03beb8d7147eb4caa030
|
2022-09-14 18:57:46 +00:00 |
|
|
b8eaf9a10d
|
Fix recovery of utf-16 databases.
FossilOrigin-Name: 5b05be0861f35804270fbd184ad4b89c23e98cc2fbd56b9e4fe6197daef5fe49
|
2022-09-14 16:37:59 +00:00 |
|
|
322967df59
|
Add OOM tests for the recovery extension.
FossilOrigin-Name: 9b6b4c7162439a889144edb561356afc66436db921a867c20871f0c556716502
|
2022-09-13 20:40:57 +00:00 |
|
|
a3a6d63b40
|
Fix a broken error handling case in the recovery extension.
FossilOrigin-Name: 60089547e1fc77ecc02f207ebf75ee3160e5ff25f41d12e02e170fd7fde66602
|
2022-09-13 19:47:01 +00:00 |
|
|
7985e05a97
|
Add tests. Deal issues surrounding aborting recovery from within the SQL callback, and avoiding the pending-byte page.
FossilOrigin-Name: 4e97dd31f5240d9231167ae172a5116426c42177a1ed3c5422b9d51b762d5a87
|
2022-09-13 18:08:24 +00:00 |
|
|
5ca0b38605
|
Fix some problems with handling corrupt database in the recovery extension.
FossilOrigin-Name: ed318be8241981ef96334ba13d3201a717cc812a59aed64e3dc67f7e7e71854b
|
2022-09-12 20:02:33 +00:00 |
|
|
aede9b5bd3
|
More tests for the recover module.
FossilOrigin-Name: 37fb093b95c6b7d7ad07a275697df73b69f9fb5c5549aea8544b26e38f24833f
|
2022-09-12 19:23:50 +00:00 |
|
|
65660916dc
|
Rework recover extension code for readability.
FossilOrigin-Name: 1a2540960e40e3c8c622448fd3862e249bd463c29ae4ce5e39942e942533f60a
|
2022-09-10 20:01:49 +00:00 |
|
|
bc2e7fc228
|
Further fixes to comments in sqlite3recover.h. Also rework some data structures in sqlite3recover.c.
FossilOrigin-Name: 599d1f8ec2f9e24924a6f9e66c85664360c7b95531b07a4efe1dd8c096b3fc99
|
2022-09-09 20:44:56 +00:00 |
|
|
7920162093
|
Handle recovery of virtual tables by recovering each shadow table individually, then writing the CREATE VIRTUAL TABLE statement directly into the sqlite_schema table.
FossilOrigin-Name: 5f2d5ccd56c06c3468377126acfd4be39b79b05bb6fb09b674b2e185df143aa3
|
2022-09-09 16:25:19 +00:00 |
|
|
46d4398440
|
Update comments in sqlite3recover.h.
FossilOrigin-Name: 14164047c43e3ca43aa010c77ea00dfa85400e15645ee0f5b90a677898b6a836
|
2022-09-08 21:43:18 +00:00 |
|
|
9a27d65044
|
Update the shell to use the recover extension for the .recover command.
FossilOrigin-Name: ae832e77084eddd696c80cb926d070a5db9d45dce34156a02522b3140e8f5e8b
|
2022-09-08 19:22:29 +00:00 |
|
|
3887ffe82a
|
Fix problems with recovering the sqlite_sequence table.
FossilOrigin-Name: 356d2209ea5f6b69ce15b62027c63419c2d039e52f01c74a3810a6317abf4fb0
|
2022-09-08 17:42:33 +00:00 |
|
|
4a08e793c6
|
Add new test file recoverclobber.test.
FossilOrigin-Name: cb4e950c472bd24a79a8505a7f8e4c3a0f7821648297d05cc760738b777d5149
|
2022-09-08 11:04:23 +00:00 |
|
|
abb28667f1
|
Ensure that the recover extension properly escapes CR and NL characters in text mode. Also that it holds transactions open on both input and output databases for the duration of a recovery operation.
FossilOrigin-Name: 6cca8913e703635ad89415a60fc84000ac188d9df43f45594b8ad87facb91d54
|
2022-09-07 16:41:33 +00:00 |
|
|
497b3e6a11
|
Tests and a fix for the SQLITE_RECOVER_ROWIDS option.
FossilOrigin-Name: 1d5000f5718004110776ff58284d824854a93fe1cd1f6d8a4e8b8b0c2b2c3076
|
2022-09-06 19:38:06 +00:00 |
|
|
108c51b6ae
|
Fix a problem with script mode and lost-and-found tables.
FossilOrigin-Name: 09ec588d2fe24dd321e88318fe90a9ae912cbc73c8a2d59a10c821625dd12d9d
|
2022-09-05 21:22:35 +00:00 |
|
|
d5e3fe50f8
|
Add a mode to output SQL statements instead of populating a database to the recover extension.
FossilOrigin-Name: 73058416e7da6581000898b7988a7010e2ce6632246f4c12b4398700c7744b83
|
2022-09-05 21:00:22 +00:00 |
|