aboutsummaryrefslogtreecommitdiff
path: root/ext/recover/sqlite3recover.c
Commit message (Collapse)AuthorAge
* Fix a problem causing an infinite loop in the recovery extension when ↵dan2023-05-31
| | | | | processing a corrupt free-block list. FossilOrigin-Name: 5a516c6c7a25cec4d0a0cca530017a3299f7a332319f3e1f7cf12f53c32b88ca
* Fix a broken assert() in the recovery extension. ↵dan2023-04-20
| | | | | [forum:/forumpost/82a88f5812|Forum post 82a88f5812]. FossilOrigin-Name: 8a1ad137606ce5bddbed62f89ff9a5cd922c6530db84c12b8b27c08df3c66bc6
* Fix lots of harmless, nuisance compiler warnings, mostly unused parameterdrh2022-12-23
| | | | | warnings in extensions. FossilOrigin-Name: c14bbe1606c1450b709970f922b94a641dfc8f9bd09126501d7dc4db99ea4772
* Add the SQLITE_FCNTL_RESET_CACHE verb. Use it to ensure that the page cache ↵dan2022-11-28
| | | | | is purged before and after a the recovery extension is run. FossilOrigin-Name: 6db0bc4bc0d272b610bef2aeeae43f539ed6e7cc0a9cc767d5af85ecb0019d5f
* Make sure that the recoverStrlen() function (used internally by the newdrh2022-11-07
| | | | | recovery extension) is 64-bit safe. FossilOrigin-Name: ea30a6bfc463acce26a4d710e7bf56519ad096ce2fe904ee7e199f5c55068034
* The recoverAssertMutexHeld() function is for testing and verification onlydrh2022-11-06
| | | | | | and should be a harmless no-op for production builds. [forum/forumpost/b4f2c7d402|Forum post b4f2c7d402]. FossilOrigin-Name: d75504710c86af0037ac897106aadffe54955463195ee4dfb2cdfc81d396cbb4
* Fix Tcl tests so that they again build and run with SQLITE_OMIT_VIRTUALTABLE ↵dan2022-11-04
| | | | | defined. FossilOrigin-Name: 06a9dbea40c8a0cdfae6b127a1ce1cba0547acdf1115c087e9b790a78c264b52
* Clarify documentation regarding the --recovery-db option to ".recover" anddrh2022-11-02
| | | | | the magic 789 configuration option it is associated with. FossilOrigin-Name: f6fa0cffa921ccde8910e7fa4a63c2e4ef8ddb376c8ce99e436b27ac332c4498
* Emcc seems confused by SQLITE_DEBUG, for reasons unknown. Use NDEBUG insteaddrh2022-11-02
| | | | | to simplify the #ifdef logic in sqlite3recover.c. FossilOrigin-Name: 2610779ac84ac4a1a6901b6244653faf0c49ac6f0a4710a19aaf2a13106ae742
* Fix a missing symbol in non-SQLITE_DEBUG builds.stephan2022-11-02
| | | FossilOrigin-Name: 17cdcad627205cdc8ae8114df44ad2a44e59603200efb238fbbb5c30ea0a453e
* Fix a harmless compiler warning.drh2022-11-01
| | | FossilOrigin-Name: 663a89164fdd43529a13cab4b9d9f04fe519e7c6b954f9c91e32e4d7ae25eb46
* Fix harmless compiler warnings.drh2022-11-01
| | | FossilOrigin-Name: de829770aa0f59b4cd3ab1dc5eec90be82663dca3199c2cf6d97f4c41ce9f799
* Fix compilation errors in the recover API seen with MSVC.mistachkin2022-11-01
| | | FossilOrigin-Name: 78d17c4fedc1629bf161f9858f2b8bf35506155ccaa0acc084b419d244d4f75d
* Avoid a segfault that could occur when running the recover API on a database ↵dan2022-10-31
| | | | | handle with memory-mapping enabled. FossilOrigin-Name: e02c697281a777c33070168af784b2d291397e488244a217620897f40aed7158
* Fix harmless compiler warnings in testing code.drh2022-10-28
| | | FossilOrigin-Name: 2f53612388507f9b1ecbec3c15281825beab54b8062d97d0ab6f009c5fed347b
* Fix another crash in the recover extension triggered by a corrupt database.dan2022-10-27
| | | FossilOrigin-Name: d125377378916fb3147612a536fde15ee955176eea9ea6eaa4a2ee5f1e8e1cbe
* Fix another problem to do with recovering from in-memory databases.dan2022-10-27
| | | FossilOrigin-Name: 5a7bfd4a217cd80882a1827674b479cdc547419a785e06e0ee82cb8cfca42701
* Ensure that the VFS wrapper in the recover extension does not attempt to ↵dan2022-10-27
| | | | | invoke undefined methods on the underlying VFS. FossilOrigin-Name: 347c575108bc8112613a02afda1247bdbed24c15def7eb412d0b27aba047715b
* Fix a problem with running ".recover" on an in-memory database.dan2022-10-27
| | | FossilOrigin-Name: 87b4cca2b84845cee603d40fbf16c9635d6dc2d19d2f37ae86abfeff716c9a85
* Do not use sqlite3_mutex_xxx() functions in sqlite3recover.c when built with ↵dan2022-10-27
| | | | | SQLITE_THREADSAFE=0. FossilOrigin-Name: cd0aa27d1732abc61c8a8440118ff629f7dca185d2f515ce1f6090c49d8dc890
* Remove an unused variable from the recovery extension.drh2022-10-26
| | | FossilOrigin-Name: a029dddff4f4ed7275538610cbd9cea658b905b72924860ec9cda9e76dabcfac
* Remove an undefined left-shift operation from the recover extension.dan2022-10-26
| | | FossilOrigin-Name: a67082357a2cc348faf8236aafa7f39eb5cb673b1d114a594c6d5bb257f85b73
* Add missing comments and fix other code issues.dan2022-10-15
| | | FossilOrigin-Name: 8ed4e4a80d8104d20b211a0b3e299abdb955cabdd36979bf6aae54266dc9778d
* Handle recovering databases with reserved bytes at the end of each page.dan2022-10-14
| | | FossilOrigin-Name: 52d0235ef3f21683daadf2343514f7b95a67c3589266f75c1e00e04f11dc6214
* Add tests for detecting page size of databases.dan2022-10-13
| | | FossilOrigin-Name: 31f9e2369fcf59032b7c4c9f5bfc85e7ef7c174003b0b9e2757dad5a4c79b370
* Ensure the page-size, auto-vacuum and other settings are copied into the ↵dan2022-10-06
| | | | | recovered database. FossilOrigin-Name: 078520f2825bcb82d01b30209409e9bf8b6c99084c192345df41c9f531d08f51
* Add code to determine the database page-size by searching for well-formed pages.dan2022-10-06
| | | FossilOrigin-Name: 0dbd0ccef532e076fa82c9fad4dc9fe632c0ef43e3483cc288cbb7eca336a9b9
* Improve handling of corruption in the sqlite_schema table b-tree structure.dan2022-10-05
| | | FossilOrigin-Name: 2be0dba12fb9b98cd9632f1ff3f30aeb29661a2e121b68c2f3335617b027797b
* Better handling for databases with corrupt headers.dan2022-10-04
| | | FossilOrigin-Name: 17f68d803685405d880025134c71bac01077962d677f2902a608952d0b9cdb5a
* Modify implementation of recovery to break recovery of the lost_and_found ↵dan2022-09-26
| | | | | table into multiple steps. FossilOrigin-Name: adedfd040bb2d1c2dcda0b91c6073f12953e45d9b860a8f217d990e861d66dfb
* Add the SQLITE_RECOVER_SLOWINDEXES option, for specifying that indexes ↵dan2022-09-24
| | | | | should be created and populated along with tables, instead of separately at the end of the recovery operation. FossilOrigin-Name: ad9dba9d1eae786575c7f31e34b342b6f5b26e719bbe27b61609cad8cfd0a505
* Add sqlite3_recover_step() to header file sqlite3recover.h. Update the API ↵dan2022-09-24
| | | | | docs in this file. FossilOrigin-Name: 47f416153035d6bf0ae27587583d2957c87c02caecbd4e7f363bcb2bc27cf159
* Update things to use sqlite3_recover_step() internally.dan2022-09-24
| | | FossilOrigin-Name: f4b15aad3005237b7ac507eed2b9b07e0f5c9407ab28f2656a21c9845f13d35f
* Internal changes to the recover extension towards a step() style interface.dan2022-09-23
| | | FossilOrigin-Name: 73926d5c8cd1ecece134b5a73b44ee1dfca74dc200606e3f009b06cdecf8cee9
* Fix various compiler warnings in new code on this branch.dan2022-09-23
| | | FossilOrigin-Name: ae49e9efde3012158061def6e0a8d993abbc5933514a21f84bc10f700f61b5e2
* Fix windows builds of recover extension.dan2022-09-15
| | | FossilOrigin-Name: abcbb6abfe08fc590123f0aa1bd72cfdecc75908f078f1348dc0e957de98bf52
* Extra tests and fixes.dan2022-09-14
| | | FossilOrigin-Name: deed5336931b23bb507c064d08e9899b33f04e4f7eee03beb8d7147eb4caa030
* Fix a broken error handling case in the recovery extension.dan2022-09-13
| | | FossilOrigin-Name: 60089547e1fc77ecc02f207ebf75ee3160e5ff25f41d12e02e170fd7fde66602
* Add tests. Deal issues surrounding aborting recovery from within the SQL ↵dan2022-09-13
| | | | | callback, and avoiding the pending-byte page. FossilOrigin-Name: 4e97dd31f5240d9231167ae172a5116426c42177a1ed3c5422b9d51b762d5a87
* Fix some problems with handling corrupt database in the recovery extension.dan2022-09-12
| | | FossilOrigin-Name: ed318be8241981ef96334ba13d3201a717cc812a59aed64e3dc67f7e7e71854b
* More tests for the recover module.dan2022-09-12
| | | FossilOrigin-Name: 37fb093b95c6b7d7ad07a275697df73b69f9fb5c5549aea8544b26e38f24833f
* Rework recover extension code for readability.dan2022-09-10
| | | FossilOrigin-Name: 1a2540960e40e3c8c622448fd3862e249bd463c29ae4ce5e39942e942533f60a
* Further fixes to comments in sqlite3recover.h. Also rework some data ↵dan2022-09-09
| | | | | structures in sqlite3recover.c. FossilOrigin-Name: 599d1f8ec2f9e24924a6f9e66c85664360c7b95531b07a4efe1dd8c096b3fc99
* Handle recovery of virtual tables by recovering each shadow table ↵dan2022-09-09
| | | | | individually, then writing the CREATE VIRTUAL TABLE statement directly into the sqlite_schema table. FossilOrigin-Name: 5f2d5ccd56c06c3468377126acfd4be39b79b05bb6fb09b674b2e185df143aa3
* Update comments in sqlite3recover.h.dan2022-09-08
| | | FossilOrigin-Name: 14164047c43e3ca43aa010c77ea00dfa85400e15645ee0f5b90a677898b6a836
* Update the shell to use the recover extension for the .recover command.dan2022-09-08
| | | FossilOrigin-Name: ae832e77084eddd696c80cb926d070a5db9d45dce34156a02522b3140e8f5e8b
* Fix problems with recovering the sqlite_sequence table.dan2022-09-08
| | | FossilOrigin-Name: 356d2209ea5f6b69ce15b62027c63419c2d039e52f01c74a3810a6317abf4fb0
* Ensure that the recover extension properly escapes CR and NL characters in ↵dan2022-09-07
| | | | | text mode. Also that it holds transactions open on both input and output databases for the duration of a recovery operation. FossilOrigin-Name: 6cca8913e703635ad89415a60fc84000ac188d9df43f45594b8ad87facb91d54
* Tests and a fix for the SQLITE_RECOVER_ROWIDS option.dan2022-09-06
| | | FossilOrigin-Name: 1d5000f5718004110776ff58284d824854a93fe1cd1f6d8a4e8b8b0c2b2c3076
* Fix a problem with script mode and lost-and-found tables.dan2022-09-05
| | | FossilOrigin-Name: 09ec588d2fe24dd321e88318fe90a9ae912cbc73c8a2d59a10c821625dd12d9d