aboutsummaryrefslogtreecommitdiff
path: root/src/wal.c
Commit message (Collapse)AuthorAge
...
* Add a new assert() statement to the snapshot-specific part of ↵dan2015-12-11
| | | | | sqlite3WalBeginReadTrans(). FossilOrigin-Name: d8a12023be32bdc6df18b0a5f38b917799854342
* Fix a variable type mismatch problem in the snapshot logic.drh2015-12-11
| | | FossilOrigin-Name: 93fb8010e4999b6b832d63a7c5a152f65d4415a3
* Fix a bad assert related to snapshots.drh2015-12-11
| | | FossilOrigin-Name: 767ee30efa5dd469e3a51d4e44cbe473061819b9
* Snapshot documentation updates. Comment changes only - no changes to code.drh2015-12-10
| | | FossilOrigin-Name: ef51a398a04963508389ffe2f9d8359c1ec48261
* Return SQLITE_BUSY (not SQLITE_BUSY_SNAPSHOT) if sqlite3_snapshot_open() ↵dan2015-12-10
| | | | | fails to obtain the shared checkpointer lock. FossilOrigin-Name: 5343060bcc6c99029f731f8020d2cba3f405f207
* Have sqlite3_snapshot_open() avoid a race condition by taking a shared ↵dan2015-12-10
| | | | | CHECKPOINTER lock while checking pInfo->nBackfillAttempted. FossilOrigin-Name: 8084eae0bc4f6513b1147fb890a6b2813f1c0a09
* Fix spacing typo in comment. No changes to code.mistachkin2015-12-10
| | | FossilOrigin-Name: 3a18526fc2253658dad84c5e600481c8a62efe40
* Add the nBackfillAttempted field in formerly unused space in WalCkptInfo anddrh2015-12-10
| | | | | use that field to close the race condition on opening a snapshot. FossilOrigin-Name: cb68e9d0738fc7db7316947b4d2aab91aae819f2
* Update sqlite3_snapshot_open() to reduce the chances of reading a corrupt ↵dan2015-12-09
| | | | | snapshot created by a checkpointer process exiting unexpectedly. FossilOrigin-Name: 7315f7cbf4179aadda0f1a0baa1526a9b9f9729f
* Add tests for snapshot_get(), _open() and _free().dan2015-12-07
| | | FossilOrigin-Name: 502cc6f353358946080d9bcd335aed526825b88a
* Add untested implementations of experimental APIs sqlite3_snapshot_get(), ↵dan2015-12-05
| | | | | _open() and _free(). FossilOrigin-Name: 0715eb00aa8891400cd50a15509d3d7b13789626
* Remove more (dead) SQLITE_FCNTL_WAL_BLOCK logic from wal.c - code that wasdrh2015-12-02
| | | | | missed during the [e1d5320ca08933] check-in. FossilOrigin-Name: 58c15c6af964563ac7ece8606d16730ccf9ee72b
* Fix an assert() enabled by SQLITE_ENABLE_EXPENSIVE_ASSERT in wal.c.dan2015-09-09
| | | FossilOrigin-Name: 8d2ed150a7a15626965cf994ef48c3ab61eca6ec
* When searching the wal file for a frame, do not search that part that was ↵dan2015-08-13
| | | | | already checkpointed when the snapshot being read was at the head of the wal file. FossilOrigin-Name: 90760e72327eb0593cbfa6d7058b554198cd8044
* Avoid reading frames that have already been checkpointed from the wal file.dan2015-08-12
| | | FossilOrigin-Name: 5669ac4a40429abc3f44540fc9d2f3b79b404bdf
* Fix harmless compiler warning in MSVC 2015.mistachkin2015-07-21
| | | FossilOrigin-Name: 01c8b9ccfa0f336dfead7c004de3de571753f707
* Avoid a harmless compiler warning.drh2015-07-17
| | | FossilOrigin-Name: 2288842b8f191ff05a157db7f77af867bfa83c4f
* Fix some harmless compiler warnings.drh2015-07-15
| | | FossilOrigin-Name: 110cd84f5e842c4dcd9b9398cea211e25f36b3aa
* Use sqlite3_malloc64() in place of sqlite3_malloc() internally.drh2015-04-29
| | | FossilOrigin-Name: 48f553b05c05373c0af4b9c3a542979db3a2ee19
* Add a comment to wal.c to explain why a race condition is safe.dan2015-04-13
| | | FossilOrigin-Name: bc33af866403c23d548dd4705675315810d52d7f
* Arrange for some of the transient locks in WAL mode to block, as a singledrh2015-03-10
| | | | | to the OS to fix priority inversions. FossilOrigin-Name: c6e6d5f4e06c3ac0bfb620c0c728fbc7230c4a02
* Ensure that "PRAGMA wal_checkpoint = TRUNCATE|FULL|RESTART" block on other ↵dan2015-01-29
| | | | | connections and truncate the database file as required even if the entire wal file has already been checkpointed. FossilOrigin-Name: 53429689d4fcf472edbc89cc50b5e69ba3270634
* Reinstate an assert() by adding an "|| CORRUPT_DB" term.drh2014-12-29
| | | FossilOrigin-Name: 95ce20348d9b868a0407adccdb222a0e4c762945
* Add an implementation mark and fix a comment describing the OP_Checkpointdrh2014-12-04
| | | | | opcode. FossilOrigin-Name: 7475b90c558157802b036162376fceacc1b9ab4a
* Add evidence marks and assert()s used as evidence for checkpoint requirements.drh2014-12-03
| | | FossilOrigin-Name: b2da8afc7657266fbe8e683c6e50fe18216cbcf3
* When attempting to restart a wal file, make any required calls to ↵dan2014-12-02
| | | | | sqlite3_randomness() before waiting on or checking for wal file readers. This restores the behaviour exhibited by the trunk. FossilOrigin-Name: 6ee08769f0ffbb3d620c66b89180ece7782dc820
* Add the SQLITE_CHECKPOINT_TRUNCATE option.dan2014-12-02
| | | FossilOrigin-Name: 8e20a43419e46b6b9d1f60ec7ea420bbfb3ef358
* Add an ALWAYS on an always-true branch in wal.c.drh2014-11-19
| | | | | | Fix the ANALYZE command so that it resets the "unordered" and "noskipscan" flags on indices when reloading the sqlite_stat1 table. FossilOrigin-Name: 9ed97a85feee6593faefa2b54cc4cf9a60f515f9
* Experimental changes that permit read operations to continue after adrh2014-11-11
| | | | | ROLLBACK, as long as the schema is unchanged. FossilOrigin-Name: fa6e6a9ae276cad60e9a4abc1bc23cf2809ea786
* Change the definition of SQLITE_CONFIG_SCRATCH so that at most one scratchdrh2014-11-04
| | | | | | buffer is used per thread. Use the generic heap memory allocator for the WalIterator object when running a checkpoint. FossilOrigin-Name: 391c9b85abcb5ba300fb2e116384639310c69ed2
* Fix typos in comments. No code changes.peter.d.reid2014-09-06
| | | FossilOrigin-Name: e62aab5e9290503869e1f4d5e0fefd2b4dee0a69
* Increase the WAL-mode SQLITE_PROTOCOL timeout to 10 seconds.drh2014-06-12
| | | FossilOrigin-Name: 2aeacf81df92b4fe5d1825c1dc1cd176b8af8bd9
* Ensure that if the "psow=0" URI option or FCNTL_POWERSAFE_OVERWRITE ↵dan2014-02-13
| | | | | file-control is used to clear the power-safe overwrite flag, extra padding frames are added to the WAL file. FossilOrigin-Name: 48c821fd97a8f03757c90560c37a46bd0843570e
* Avoid passing a flags argument with the internal WAL_SYNC_TRANSACTIONS bit ↵dan2014-02-13
| | | | | set when calling sqlite3OsSync(). FossilOrigin-Name: e3b79e920c298a39613631d689d1a2f182d00496
* Add extended error code SQLITE_BUSY_SNAPSHOT - returned in WAL mode when a ↵dan2013-06-27
| | | | | read-transaction cannot be upgraded to a write-transaction because it is reading from a snapshot other than the most recently committed. FossilOrigin-Name: 361c22969aa75340ed696e00e3dc5d17d5493bee
* Add new primary error codes SQLITE_NOTICE and SQLITE_WARNING for use withdrh2013-04-10
| | | | | | | sqlite3_log(). Add new extended error codes SQLITE_NOTICE_RECOVER_WAL and SQLITE_NOTICE_RECOVER_ROLLBACK to use with sqlite3_log() messages that occur on each recovery. FossilOrigin-Name: be7d2c5482c41baf000d7fb5dccc31b974e91064
* Ensure that a checkpoint does not use an out-of-date mapping.dan2013-04-01
| | | FossilOrigin-Name: a1040f0397d57855500926494c978623286ddc77
* Fix a typo in a log message in wal.c.dan2013-04-01
| | | FossilOrigin-Name: 83fc48d16572443373e5de62adbd4cd53c2f7786
* Replace the sqlite3_io_methods.xMremap interface with ↵dan2013-03-23
| | | | | sqlite3_io_methods.xFetch and xUnfetch. FossilOrigin-Name: 1431be95579160fb70408d43e17fc23c7b69ab4a
* Improve a comment in wal.c. No code changes.dan2013-03-23
| | | FossilOrigin-Name: 60b9f5e4dd2af54975ba78437239f0bebd472fd2
* Allow the database file to be memory mapped in wal mode.dan2013-03-22
| | | FossilOrigin-Name: d190ddabc386bc9654b99e33fb81b2f6e67b54d6
* Fix a failing assert() in wal.c.dan2012-10-15
| | | FossilOrigin-Name: 8745530b9a877db77fe2ca3ea9c6bc99ce033055
* Ensure that the value returned by xSectorSize() is reasonable (currently ↵dan2012-10-01
| | | | | defined as between 2^5 and 2^16 bytes) before using it to calculate the amount of padding to add to a wal file. FossilOrigin-Name: 6b4ff83bff07d427af585c9fd03be90abf2fc82f
* 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