aboutsummaryrefslogtreecommitdiff
path: root/src/wal.c
Commit message (Collapse)AuthorAge
...
* Fix all known instances of 'repeated the' style typos in comments. No ↵mistachkin2012-08-25
| | | | | changes to code. FossilOrigin-Name: 9b19b847533f944f289d93dcdba29c0d67bf251c
* Ensure that there is always at least one aReadMark slot usable by an ↵dan2012-07-17
| | | | | unprivileged reader while a checkpoint is running. Also, if one or more transactions are recovered from a log file, initialize one of the aReadMark slots to contain mxFrame as part of the recovery process. FossilOrigin-Name: e4163596339c2166f9c4356ab824fff8bda8d0b0
* Amplification of a comment in wal.c. Change the aReadMark[] processing sodrh2012-07-17
| | | | | that one read mark is left at zero when a WAL resets. FossilOrigin-Name: 8c9ee1d78f99394eef73a177141ca9e1c67e4e07
* Fix spurious errors that may occur if an empty database is opened and then ↵dan2012-02-28
| | | | | initialized as a WAL database by a second connection. FossilOrigin-Name: 16330a2f7262173a32ae48a72c0ee2522b6dc554
* Add #ifdef SQLITE_ENABLE_ZIPVFS around those bits of code that are onlydrh2012-02-24
| | | | | used by ZIPVFS. FossilOrigin-Name: 3130275c64a60c5cfacbd11123305e6d99ea866d
* Fix a typo made inside an assert() statement in the previous commit.dan2012-02-23
| | | FossilOrigin-Name: f0640615f25ebe8bf2eed0e1a0f2e309471889fe
* Add the sqlite3PagerWalFramesize() function to pager.c. This is used by zipvfs.dan2012-02-23
| | | FossilOrigin-Name: 786e24dc56504d1958db0618e645610f2600a087
* Refactor sqlite3OsFileControlNoFail() into sqlite3FileControlHint().drh2012-01-10
| | | FossilOrigin-Name: 722735a4f316630c907149f08d3d7dccc0facd9a
* Add function sqlite3OsFileControlNoFail(), which is the same as ↵dan2012-01-10
| | | | | sqlite3OsFileControl() except that it does not simulate OOM errors. This saves adding calls to the BenignMalloc() functions around each of the invocations of sqliteOsFileControl() that ignore the return code. FossilOrigin-Name: af59b182d797642e5ec3ddf291cf62662a136bd1
* Remove the BenignMalloc() from around the call to FCNTL_OVERWRITE. Adddrh2012-01-10
| | | | | | new ones around sqlite3OsDelete(). Fix an assert that causes problems for the nx-devkit. FossilOrigin-Name: 38bc4236d5a9d9f22a525bf9308d90cd4d9ce5a4
* Tweaks to improve testability.drh2012-01-01
| | | FossilOrigin-Name: e3a929e43180f41095cc2cd00c6b0781856a4474
* Avoid excess syncs when padding a transaction in a WAL.drh2011-12-23
| | | FossilOrigin-Name: 1f24ae716df6232de768e245ea990049deee3c22
* Merge the POWERSAFE_OVERWRITE features and the use of statvfs() from thedrh2011-12-23
|\ | | | | | | | | statvfs branch into trunk. FossilOrigin-Name: 2370d70eb51d2259aaa8073d861ab79d6637cbd9
| * Change the name ZERO_DAMAGE to the more descriptive POWERSAFE_OVERWRITE.drh2011-12-23
| | | | | | | | | | The query parameter used to control this device characteristic is now "psow". FossilOrigin-Name: 6191c5e45175f5c6040e891843b0725a929d6dd7
| * Remove a redundant assignment operator.drh2011-12-22
| | | | | | FossilOrigin-Name: 19a6852a1e5905b35bc69b309951c5ec8ecd0bef
| * Remove the code that tries to detect OOO header writes on a WAL recovery.drh2011-12-20
| | | | | | | | | | The code is made obsolete by syncing the WAL header. FossilOrigin-Name: 7ac713a14e24c48651c2a97acc9839850fa7f3c3
| * Refactor the sqlite3WalFrames() routine for clarity of presentation.drh2011-12-20
| | | | | | | | | | | | | | Do the padded transaction sync as the write pointer crosses the final sector boundary instead of at the end, for efficiency. Always sync the WAL header immediately after it is written. FossilOrigin-Name: 92c73b421b6242b09247dfb759777a531a107523
| * For improved clarity of presentation, drh2011-12-17
| | | | | | | | | | refactor some of the code associated with ZERO_DAMAGE and sector-size. FossilOrigin-Name: 1dde96c9ee88af1c4e37c2e65acb7c0fe6a20e2a
| * Add SQLITE_IOCAP_ZERO_DAMAGE and enable it for both unix and windows. Usedrh2011-12-17
| | | | | | | | | | | | | | this device characteristic to reduce the required work in journaling. A side effect is that this changes the default page exists back to 1024 even with the use of statvfs(). FossilOrigin-Name: a0be6ea464695fdf1eaf2b7cf0652778617814f2
* | Assert that the isCommit parameter to sqlite3WalFrames() is zero if anddrh2011-12-20
|/ | | | | only if the nTruncate parameter is zero. FossilOrigin-Name: 979daf92e09305665d943e197b93b81139197c5b
* Merge in changes that cause the first sector of the WAL file to be synceddrh2011-12-17
|\ | | | | | | | | | | when the WAL restarts. This is a fix for the power-loss corruption problem described in ticket [ff5be73dee086] FossilOrigin-Name: 44ca4d123385d759c11919865525c998c2e35bdb
| * Enhance the WAL header sync so that it honors the various synchronousdrh2011-12-16
| | | | | | | | | | pragmas, settings, and device characteristics. FossilOrigin-Name: 9799241f7de952c4d1ea8bf6508b577d2b57a370
| * Proposed changes that ensure that the WAL header is written prior to thedrh2011-12-16
| | | | | | | | | | first commit mark. FossilOrigin-Name: 91d0437c0702904d27f0ef7b1b52d0797efe1826
* | Make sure the Salt-1 value in the WAL file is sequentially numbered atdrh2011-12-17
|/ | | | | each checkpoint, as it says it should be in the documentation. FossilOrigin-Name: 7b63b11b93396079131686abb36c4221354fa50e
* Merge the fix for [a1fa75cbdd02] from the experimental branch. Alsodrh2011-12-16
|\ | | | | | | | | | | fix the persistent-wal mode feature of truncating the WAL on close so that it always truncates the WAL to zero bytes. FossilOrigin-Name: 09ccc4a1be7ba81890f10aac6623dd90dab4f990
| * Experimental fix for [a1fa75cbdd].dan2011-12-16
|/ | | FossilOrigin-Name: 6492af76ea6585a1b377d69751af930c0ccfe688
* In persistent WAL mode, truncate the WAL file to the size specified by thedrh2011-12-08
| | | | | journal_size_limit pragma when disconnecting from the WAL. FossilOrigin-Name: 9687b305c2320109a8649612181eecd2e0da7c7b
* Remove a couple of incorrect assert statements so that the test suite willdrh2011-11-12
| | | | | run with -DSQLITE_DEFAULT_CACHE_SIZE=0. FossilOrigin-Name: 87614b62ace530761e0e1170ec5840b212735ec6
* Add assert() statements and eliminate needless variable assignments in orderdrh2011-10-14
| | | | | | | to get the clang scan-build utility to report zero problems against the SQLite core. Clang's static analysis did find one real problem - but it was in the command-line shell, not in the SQLite core. FossilOrigin-Name: 60fee9574b0125705787e33c16f116cf188c8323
* Prototype change for a new sqlite3_file_control() that will cause thedrh2011-07-26
| | | | | -wal and -shm files to persist after the last database connection closes. FossilOrigin-Name: e34c553bf04761e86f3bd72f91439c05886caa5c
* Fix a faulty assert() in the WAL-mode logic for read-only shared memory.drh2011-06-02
| | | FossilOrigin-Name: a13cfe616284f4ee86f0406e7b8fe8f9ba6e6990
* Simplify the wal-readonly branch so that it does not require changes todrh2011-06-01
| | | | | anything other than os_unix.c and wal.c and a couple of new error codes. FossilOrigin-Name: d6b4709de4d1f8af001f58938247f00a652a616e
* Merge the latest trunk changes into the wal-readonly branch.drh2011-05-31
|\ | | | | FossilOrigin-Name: 2c6b5a28e3f6b7cb96b944d0a254f3707885f1ce
| * Ignore malloc failures within the WAL file truncation attempt fordrh2011-05-25
| | | | | | | | | | journal_size_limit. FossilOrigin-Name: dd19105aa9521ffc0edcf16b84c064d5ebad55d7
| * Enhance WAL mode so that the WAL file honors the journal size limit setdrh2011-05-16
| | | | | | | | | | by PRAGMA journal_size_limit. FossilOrigin-Name: db7e500f69faf1906a84991ba67d26a195f02ae5
* | Add missing comments associated with readonly shm changes.dan2011-05-11
| | | | | | FossilOrigin-Name: 6a2ea52e6c09a570428161090c2f087c66f714ec
* | Only open a read-only connection to shared-memory if the "readonly_shm=1" ↵dan2011-05-11
| | | | | | | | | | option is specified as part of the database file URI (and if a read-write connection fails). FossilOrigin-Name: 671ba5fc59f7a958e5a4138d2425b1173a442ad7
* | Add experimental support for read-only connections to WAL databases.dan2011-05-10
|/ | | FossilOrigin-Name: bb59f9862da45d25fb51d7821130854828c91c98
* Remove dead code identified by the clang static analyzer.drh2011-03-06
| | | FossilOrigin-Name: 01a79d5a7af48fb7e50291c0c7c6283d3fb359d0
* An SQLITE_PROTOCOL error counts as a locking error for verificationdrh2011-02-19
| | | | | purposes. FossilOrigin-Name: e87d499a4f8a456111c1f96ca6da31d0810fb7c8
* Change a testcase() added by the previous checkin into an assert().drh2011-02-19
| | | FossilOrigin-Name: 6f3dad32aa0e1e9ee374302c82bea9bd60d5854b
* Add testcase macros to verify that all return values fromdrh2011-02-19
| | | | | walTryBeginRead() are tested. FossilOrigin-Name: 262b6fca0b7a251c02604c684a9f7e7a1434d630
* Changes to make WAL more robust against SQLITE_PROTOCOL errors.drh2011-02-19
| | | FossilOrigin-Name: fd578a32f8e9f04957359e73f244a60f02afe08c
* Change blocking-checkpoint tests so that they run once using "PRAGMA ↵dan2011-02-07
| | | | | wal_checkpoint" and once using calls to sqlite3_wal_checkpoint_v2(). Also fix edge cases surrounding the output variables set by wal_checkpoint_v2(). FossilOrigin-Name: 5a4b6652cf3780ffed6fe0fe669e8090b0b71e81
* Fix minor problems with the output of "PRAGMA wal_checkpoint". In both code ↵dan2011-02-02
| | | | | and tests. FossilOrigin-Name: aef61036b31963e4c3ff4e8acf8c1734dc9394af
* Merge in the blocking-checkpoint enhancement, including the newdrh2011-02-02
|\ | | | | | | | | | | sqlite3_wal_checkpoint_v2() interface and the PRAGMA wal_checkpoint(full) statement. FossilOrigin-Name: bac7342c368a7c4f5f2878e08d9581dcbf57dd58
| * Fixes for SQLITE_BUSY handling in blocking checkpoint code.dan2010-11-18
| | | | | | FossilOrigin-Name: 4c663a4dcc77e00558edd94f58410605b95db33a
| * Modify the interface to the blocking wal-checkpoint functionality.dan2010-11-18
| | | | | | FossilOrigin-Name: 72787c010c8944e8fcf9c98aa4482f129142d8e9
| * Add experimental command "PRAGMA wal_blocking_checkpoint", which uses the ↵dan2010-11-16
| | | | | | | | | | busy-handler to block until all readers have finished in order to ensure the next writer will be able to wrap around to the start of the log file. FossilOrigin-Name: 7e3fc2c833a5baa08820c499867b6902bdc2ed5a
* | Make wal_checkpoint a no-op if a prior checkpoint has already copied all drh2010-12-16
| | | | | | | | | | | | | | WAL content into the database. This prevents a concurrent write to the database from resetting the wal-index out from under the WalIterator of the checkpoint as it is initializing. FossilOrigin-Name: cf86affcb7d3089496e9849cbf43a211097e4f64